inflearn logo
강의

講義

知識共有

フォローして学ぶノード、リアクトシリーズ - 映画サイトを作る

ムービーアプリシリーズ#2 Boiler-Plate& MongoDB接続(フォローして学習するリアクトノード)

#2강 npm install

767

0529th

投稿した質問数 1

0

npm ERR! code 1

npm ERR! path C:\Users\지은\Downloads\boilerplate-mern-stack-master\boilerplate-mern-stack-master\node_modules\bcrypt

npm ERR! command failed

npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-pre-gyp install --fallback-to-build

npm ERR! Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\지은\AppData\Roaming\nvm\v16.15.0\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\지은\Downloads\boilerplate-mern-stack-master\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\지은\Downloads\boilerplate-mern-stack-master\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1)

npm ERR! node-pre-gyp info it worked if it ends with ok

npm ERR! node-pre-gyp info using node-pre-gyp@0.14.0

npm ERR! node-pre-gyp info using node@16.15.0 | win32 | x64

npm ERR! node-pre-gyp WARN Using needle for node-pre-gyp https download

npm ERR! node-pre-gyp info check checked for "C:\Users\지은\Downloads\boilerplate-mern-stack-master\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding\bcrypt_lib.node" (not found)

npm ERR! node-pre-gyp http GET https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.8/bcrypt_lib-v3.0.8-node-v93-win32-x64-unknown.tar.gz

npm ERR! node-pre-gyp http 404 https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.8/bcrypt_lib-v3.0.8-node-v93-win32-x64-unknown.tar.gz

npm ERR! node-pre-gyp WARN Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.8/bcrypt_lib-v3.0.8-node-v93-win32-x64-unknown.tar.gz

npm ERR! node-pre-gyp WARN Pre-built binaries not found for bcrypt@3.0.8 and node@16.15.0 (node-v93 ABI, unknown) (falling back to source compile with node-gyp) 

npm ERR! node-pre-gyp http 404 status code downloading tarball https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.8/bcrypt_lib-v3.0.8-node-v93-win32-x64-unknown.tar.gz

npm ERR! gyp info it worked if it ends with ok

npm ERR! gyp info using node-gyp@9.0.0

npm ERR! gyp info using node@16.15.0 | win32 | x64

npm ERR! gyp info ok

npm ERR! gyp info it worked if it ends with ok

npm ERR! gyp info using node-gyp@9.0.0

npm ERR! gyp info using node@16.15.0 | win32 | x64

npm ERR! gyp ERR! find Python

npm ERR! gyp ERR! find Python Python is not set from command line or npm configuration

npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON

npm ERR! gyp ERR! find Python checking if "python3" can be used

npm ERR! gyp ERR! find Python - "python3" is not in PATH or produced an error

npm ERR! gyp ERR! find Python checking if "python" can be used

npm ERR! gyp ERR! find Python - "python" is not in PATH or produced an error

npm ERR! gyp ERR! find Python checking if Python is C:\Users\지은\AppData\Local\Programs\Python\Python39\python.exe

npm ERR! gyp ERR! find Python - "C:\Users\지은\AppData\Local\Programs\Python\Python39\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python39\python.exe

npm ERR! gyp ERR! find Python - "C:\Program Files\Python39\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Users\지은\AppData\Local\Programs\Python\Python39-32\python.exe

npm ERR! gyp ERR! find Python - "C:\Users\지은\AppData\Local\Programs\Python\Python39-32\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python39-32\python.exe

npm ERR! gyp ERR! find Python - "C:\Program Files\Python39-32\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python39-32\python.exe

npm ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python39-32\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Users\지은\AppData\Local\Programs\Python\Python38\python.exe

npm ERR! gyp ERR! find Python - "C:\Users\지은\AppData\Local\Programs\Python\Python38\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python38\python.exe

npm ERR! gyp ERR! find Python - "C:\Program Files\Python38\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Users\지은\AppData\Local\Programs\Python\Python38-32\python.exe

npm ERR! gyp ERR! find Python - "C:\Users\지은\AppData\Local\Programs\Python\Python38-32\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python38-32\python.exe

npm ERR! gyp ERR! find Python - "C:\Program Files\Python38-32\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python38-32\python.exe

npm ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python38-32\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Users\지은\AppData\Local\Programs\Python\Python37\python.exe

npm ERR! gyp ERR! find Python - "C:\Users\지은\AppData\Local\Programs\Python\Python37\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python37\python.exe

npm ERR! gyp ERR! find Python - "C:\Program Files\Python37\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Users\지은\AppData\Local\Programs\Python\Python37-32\python.exe

npm ERR! gyp ERR! find Python - "C:\Users\지은\AppData\Local\Programs\Python\Python37-32\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python37-32\python.exe

npm ERR! gyp ERR! find Python - "C:\Program Files\Python37-32\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python37-32\python.exe

npm ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python37-32\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Users\지은\AppData\Local\Programs\Python\Python36\python.exe

npm ERR! gyp ERR! find Python - "C:\Users\지은\AppData\Local\Programs\Python\Python36\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python36\python.exe

npm ERR! gyp ERR! find Python - "C:\Program Files\Python36\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Users\지은\AppData\Local\Programs\Python\Python36-32\python.exe

npm ERR! gyp ERR! find Python - "C:\Users\지은\AppData\Local\Programs\Python\Python36-32\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python36-32\python.exe

npm ERR! gyp ERR! find Python - "C:\Program Files\Python36-32\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python36-32\python.exe

npm ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python36-32\python.exe" could not be run

npm ERR!     C:\Users\지은\AppData\Local\npm-cache\_logs\2022-05-25T05_57_34_949Z-debug-0.lognpm ERR! code 1

npm ERR! path C:\Users\지은\Downloads\boilerplate-mern-stack-master\boilerplate-mern-stack-master\node_modules\bcrypt

npm ERR! command failed

npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-pre-gyp install --fallback-to-build

npm ERR! Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\지은\AppData\Roaming\nvm\v16.15.0\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\지은\Downloads\boilerplate-mern-stack-master\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\지은\Downloads\boilerplate-mern-stack-master\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1)

npm ERR! node-pre-gyp info it worked if it ends with ok

npm ERR! node-pre-gyp info using node-pre-gyp@0.14.0

npm ERR! node-pre-gyp info using node@16.15.0 | win32 | x64

npm ERR! node-pre-gyp WARN Using needle for node-pre-gyp https download

npm ERR! node-pre-gyp info check checked for "C:\Users\지은\Downloads\boilerplate-mern-stack-master\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding\bcrypt_lib.node" (not found)

npm ERR! node-pre-gyp http GET https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.8/bcrypt_lib-v3.0.8-node-v93-win32-x64-unknown.tar.gz

npm ERR! node-pre-gyp http 404 https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.8/bcrypt_lib-v3.0.8-node-v93-win32-x64-unknown.tar.gz

npm ERR! node-pre-gyp WARN Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.8/bcrypt_lib-v3.0.8-node-v93-win32-x64-unknown.tar.gz

npm ERR! node-pre-gyp WARN Pre-built binaries not found for bcrypt@3.0.8 and node@16.15.0 (node-v93 ABI, unknown) (falling back to source compile with node-gyp) 

npm ERR! node-pre-gyp http 404 status code downloading tarball https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.8/bcrypt_lib-v3.0.8-node-v93-win32-x64-unknown.tar.gz

npm ERR! gyp info it worked if it ends with ok

npm ERR! gyp info using node-gyp@9.0.0

npm ERR! gyp info using node@16.15.0 | win32 | x64

npm ERR! gyp info ok

npm ERR! gyp info it worked if it ends with ok

npm ERR! gyp info using node-gyp@9.0.0

npm ERR! gyp info using node@16.15.0 | win32 | x64

npm ERR! gyp ERR! find Python

npm ERR! gyp ERR! find Python Python is not set from command line or npm configuration

npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON

npm ERR! gyp ERR! find Python checking if "python3" can be used

npm ERR! gyp ERR! find Python - "python3" is not in PATH or produced an error

npm ERR! gyp ERR! find Python checking if "python" can be used

npm ERR! gyp ERR! find Python - "python" is not in PATH or produced an error

npm ERR! gyp ERR! find Python checking if Python is C:\Users\지은\AppData\Local\Programs\Python\Python39\python.exe

npm ERR! gyp ERR! find Python - "C:\Users\지은\AppData\Local\Programs\Python\Python39\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python39\python.exe

npm ERR! gyp ERR! find Python - "C:\Program Files\Python39\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Users\지은\AppData\Local\Programs\Python\Python39-32\python.exe

npm ERR! gyp ERR! find Python - "C:\Users\지은\AppData\Local\Programs\Python\Python39-32\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python39-32\python.exe

npm ERR! gyp ERR! find Python - "C:\Program Files\Python39-32\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python39-32\python.exe

npm ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python39-32\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Users\지은\AppData\Local\Programs\Python\Python38\python.exe

npm ERR! gyp ERR! find Python - "C:\Users\지은\AppData\Local\Programs\Python\Python38\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python38\python.exe

npm ERR! gyp ERR! find Python - "C:\Program Files\Python38\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Users\지은\AppData\Local\Programs\Python\Python38-32\python.exe

npm ERR! gyp ERR! find Python - "C:\Users\지은\AppData\Local\Programs\Python\Python38-32\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python38-32\python.exe

npm ERR! gyp ERR! find Python - "C:\Program Files\Python38-32\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python38-32\python.exe

npm ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python38-32\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Users\지은\AppData\Local\Programs\Python\Python37\python.exe

npm ERR! gyp ERR! find Python - "C:\Users\지은\AppData\Local\Programs\Python\Python37\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python37\python.exe

npm ERR! gyp ERR! find Python - "C:\Program Files\Python37\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Users\지은\AppData\Local\Programs\Python\Python37-32\python.exe

npm ERR! gyp ERR! find Python - "C:\Users\지은\AppData\Local\Programs\Python\Python37-32\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python37-32\python.exe

npm ERR! gyp ERR! find Python - "C:\Program Files\Python37-32\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python37-32\python.exe

npm ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python37-32\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Users\지은\AppData\Local\Programs\Python\Python36\python.exe

npm ERR! gyp ERR! find Python - "C:\Users\지은\AppData\Local\Programs\Python\Python36\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python36\python.exe

npm ERR! gyp ERR! find Python - "C:\Program Files\Python36\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Users\지은\AppData\Local\Programs\Python\Python36-32\python.exe

npm ERR! gyp ERR! find Python - "C:\Users\지은\AppData\Local\Programs\Python\Python36-32\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python36-32\python.exe

npm ERR! gyp ERR! find Python - "C:\Program Files\Python36-32\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python36-32\python.exe

npm ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python36-32\python.exe" could not be run

npm ERR!     C:\Users\지은\AppData\Local\npm-cache\_logs\2022-05-25T05_57_34_949Z-debug-0.log

 

루트 디렉토리에서 npm install 오류가 계속뜹니다ㅠ 버전의 문제인가요...? 이 강의 꼭 듣고싶은데 해결방법이 있을까요..?

 

 

nodejs express mongodb 웹앱 react

回答 4

4

ai00077743

 

맨처음 npm install 하시기 전에,

루트 디렉토리의 package-lock.json 을 삭제해주세요.

그 다음 package.json 에서

"bcrypt": "^3.0.6",

를 지워주세요.

그 다음 루트 디렉토리에서 터미널을 열어 npm install 을 실행합니다.

설치가 완료되면, 터미널에서 npm install bcryptjs --save 를 실행합니다.

해결되셨을까요?

0

ghkwlsdbwls9382

YOHAN JIN 님 덕분에 해결했습니다.

추가로 이후에 npm run dev 시 생기는 문제는 nvm 설치하고
1. nvm install 16.20.2 (nvm 은 설치 필요)
2. nvm use 16.20.2
3. npm install (바꿔준 버전으로 다시 설치해주기)

  1. npm run dev

하니 해결되었습니다. ㅜㅜ 정말 오래 걸렸네요

0

YOHAN JIN

그리고 그 다음 bcryptjs를 참조할 수 있도록
server/models/User.js 에서

const bcrypt = require('bcryptjs');

이렇게 수정해주셔야 합니다.
현재 4강 LandingPage.js 수정하기 전까지,

에러 메시지 하나도 없이 npm run dev 실행 됩니다.

 

아, 그리고 저는 node 버전 때문에 'digital envelope routines::unsupported' 오류가 난다고 지피티가 알려줘서 그냥 노드 버전 16.20.2로 낮췄습니다.

0

Sangho Kim

저도 해결되었습니다. 감사합니다!!

에러서 요렇게만 해보세요

0

228

1

antd Menu 질문

0

258

1

movieTitle

0

218

1

npm run dev 연결이 안됩니다ㅜㅜ

0

409

1

npm run dev 오류

0

853

1

403 forbidden error

0

1067

2

npm run dev 오류

0

696

1

모듈이 없다는데요

0

1276

1

npm run dev 실행시 오류

0

5365

1

504 Gateway Timeout Error

0

1448

1

컴파일 에러 관련 문의

0

504

1

npm run dev 오류

0

760

1

이미지가 안떠요...

0

369

2

npm run dev 실행하고 인증이 안되는거 같아요

0

531

1

cd client에서 npm install 오류

0

1418

1

npm run dev시 localhost가 자꾸 3000으로 연결됩니다

0

972

1

Netlify + AWS Elastic Beanstalk 를 이용한 배포

1

1785

1

[nodemon] app crashed - waiting for file changes before starting... Error occurred while proxying request localhost:3000/api/hello to http://localhost:5000/ 해결법

0

460

0

지금 듣기엔 안되는 강의일까요?

0

716

1

사진이 2개 2개씩 다른줄에 나와요 ㅠㅠ

0

428

1

비동기 처리가 영상과 다르게 됩니다..

0

245

0

LandingPage.js 내 useState(null) 이용하는 이유

0

223

0

client 부분에 App.js 와 Config.js 위치가 다른데 상관없는 것인가요?

0

378

1

server npm install 에러

0

344

0