inflearn logo
강의

Course

Instructor

Node and React series that you can learn by following - Creating a movie site

npm install error

546

rkswjdwls5581

2 asked

0

2번째 강의에서 깃허브 사이트에 들어가서 zip 다운받은 후 열어서 npm install 하는 과정에서 

설치가 되지않고 에러가 나옵니다. 무시하고 진행을 하려는데 나중에도 계속 안되서 질문 올립니다.

어떤 에러인지 잘 모르겠어서 해결방법을 모르겠습니다.ㅠ

Microsoft Windows [Version 10.0.19042.867]

(c) 2020 Microsoft Corporation. All rights reserved.

C:\Users\gjj\Desktop\boilerplate-mern-stack-master>npm install

npm ERR! code 1

npm ERR! path C:\Users\gjj\Desktop\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:\Program 

Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\gjj\Desktop\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\gjj\Desktop\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding --napi_version=7 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v88' (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@15.11.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\gjj\Desktop\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-v88-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-v88-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-v88-win32-x64-unknown.tar.gz

npm ERR! node-pre-gyp WARN Pre-built binaries not found for bcrypt@3.0.8 and node@15.11.0 (node-v88 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-v88-win32-x64-unknown.tar.gz

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

npm ERR! gyp info using node-gyp@7.1.2

npm ERR! gyp info using node@15.11.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@7.1.2

npm ERR! gyp info using node@15.11.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 "python2" can be used

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

error

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

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

npm ERR! gyp ERR! find Python checking if Python is C:\Python27\python.exe

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

npm ERR! gyp ERR! find Python checking if the py launcher can be used to find Python

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

npm ERR! gyp ERR! find Python

npm ERR! gyp ERR! find Python **********************************************************

npm ERR! gyp ERR! find Python You need to install the latest version of 

Python.

npm ERR! gyp ERR! find Python Node-gyp should be able to find and use Python. If not,

npm ERR! gyp ERR! find Python you can try one of the following options: 

npm ERR! gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe"

npm ERR! gyp ERR! find Python   (accepted by both node-gyp and npm)     

npm ERR! gyp ERR! find Python - Set the environment variable PYTHON     

npm ERR! gyp ERR! find Python - Set the npm configuration variable python:

npm ERR! gyp ERR! find Python   npm config set python "C:\Path\To\python.exe"

npm ERR! gyp ERR! find Python For more information consult the documentation at:

npm ERR! gyp ERR! find Python https://github.com/nodejs/node-gyp#installation

npm ERR! gyp ERR! find Python **********************************************************

npm ERR! gyp ERR! find Python

npm ERR! gyp ERR! configure error

npm ERR! gyp ERR! stack Error: Could not find any Python installation to use

npm ERR! gyp ERR! stack     at PythonFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:302:47)     

npm ERR! gyp ERR! stack     at PythonFinder.runChecks (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:136:21)npm ERR! gyp ERR! stack     at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:200:18)

npm ERR! gyp ERR! stack     at PythonFinder.execFileCallback (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:266:16)

npm ERR! gyp ERR! stack     at exithandler (node:child_process:333:5)   

npm ERR! gyp ERR! stack     at ChildProcess.errorhandler (node:child_process:345:5)

npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:378:20)

npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:288:12)

npm ERR! gyp ERR! stack     at onErrorNT (node:internal/child_process:480:16)

npm ERR! gyp ERR! stack     at processTicksAndRejections (node:internal/process/task_queues:81:21)

npm ERR! gyp ERR! System Windows_NT 10.0.19042

npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\Users\\gjj\\Desktop\\boilerplate-mern-stack-master\\node_modules\\bcrypt\\lib\\binding\\bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=C:\\Users\\gjj\\Desktop\\boilerplate-mern-stack-master\\node_modules\\bcrypt\\lib\\binding" "--napi_version=7" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v88"

npm ERR! gyp ERR! cwd C:\Users\gjj\Desktop\boilerplate-mern-stack-master\node_modules\bcrypt

npm ERR! gyp ERR! node -v v15.11.0

npm ERR! gyp ERR! node-gyp -v v7.1.2

npm ERR! gyp ERR! not ok

npm ERR! node-pre-gyp ERR! build error

npm ERR! node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\gjj\Desktop\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\gjj\Desktop\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding --napi_version=7 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v88' (1)

npm ERR! node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:\Users\gjj\Desktop\boilerplate-mern-stack-master\node_modules\node-pre-gyp\lib\util\compile.js:83:29)

npm ERR! node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:378:20)

npm ERR! node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1067:16)

npm ERR! node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)

npm ERR! node-pre-gyp ERR! System Windows_NT 10.0.19042

npm ERR! node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\gjj\\Desktop\\boilerplate-mern-stack-master\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" 

"install" "--fallback-to-build"

npm ERR! node-pre-gyp ERR! cwd C:\Users\gjj\Desktop\boilerplate-mern-stack-master\node_modules\bcrypt

npm ERR! node-pre-gyp ERR! node -v v15.11.0

npm ERR! node-pre-gyp ERR! node-pre-gyp -v v0.14.0

npm ERR! node-pre-gyp ERR! not ok

npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Users\gjj\AppData\Local\npm-cache\_logs\2021-03-21T13_47_25_244Z-debug.log

C:\Users\gjj\Desktop\boilerplate-mern-stack-master>

npminstall react 2번째강의 express 웹앱 nodejs mongodb

Answer 2

0

rkswjdwls5581

C:\Users\gjj\Desktop\boilerplate-mern-stack-master>npm install bcryptjs --save

npm ERR! code 1

npm ERR! path C:\Users\gjj\Desktop\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:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js 

configure --fallback-to-build --module=C:\Users\gjj\Desktop\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\gjj\Desktop\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding --napi_version=7 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v88' (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@15.11.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\gjj\Desktop\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-v88-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-v88-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-v88-win32-x64-unknown.tar.gz

npm ERR! node-pre-gyp WARN Pre-built binaries not found for bcrypt@3.0.8 and node@15.11.0 (node-v88 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-v88-win32-x64-unknown.tar.gz

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

npm ERR! gyp info using node-gyp@7.1.2

npm ERR! gyp info using node@15.11.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@7.1.2

npm ERR! gyp info using node@15.11.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 "python2" can be used       

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

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

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

run

npm ERR! gyp ERR! find Python checking if Python is C:\Python27\python.exe

npm ERR! gyp ERR! find Python - "C:\Python27\python.exe" could not be 

run

npm ERR! gyp ERR! find Python checking if the py launcher can be used 

to find Python

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

npm ERR! gyp ERR! find Python

npm ERR! gyp ERR! find Python **********************************************************

npm ERR! gyp ERR! find Python You need to install the latest version of Python.

npm ERR! gyp ERR! find Python Node-gyp should be able to find and use 

Python. If not,

npm ERR! gyp ERR! find Python you can try one of the following options:

npm ERR! gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe"

npm ERR! gyp ERR! find Python   (accepted by both node-gyp and npm)   

npm ERR! gyp ERR! find Python - Set the environment variable PYTHON   

npm ERR! gyp ERR! find Python - Set the npm configuration variable python:

npm ERR! gyp ERR! find Python   npm config set python "C:\Path\To\python.exe"

npm ERR! gyp ERR! find Python For more information consult the documentation at:

npm ERR! gyp ERR! find Python https://github.com/nodejs/node-gyp#installation

npm ERR! gyp ERR! find Python **********************************************************

npm ERR! gyp ERR! find Python

npm ERR! gyp ERR! configure error

npm ERR! gyp ERR! stack Error: Could not find any Python installation 

to use

npm ERR! gyp ERR! stack     at PythonFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:302:47) 

npm ERR! gyp ERR! stack     at PythonFinder.runChecks (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:136:21)

npm ERR! gyp ERR! stack     at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:200:18)

npm ERR! gyp ERR! stack     at PythonFinder.execFileCallback (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:266:16)

npm ERR! gyp ERR! stack     at exithandler (node:child_process:333:5) 

npm ERR! gyp ERR! stack     at ChildProcess.errorhandler (node:child_process:345:5)

npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:378:20) 

npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:288:12)

npm ERR! gyp ERR! stack     at onErrorNT (node:internal/child_process:480:16)

npm ERR! gyp ERR! stack     at processTicksAndRejections (node:internal/process/task_queues:81:21)

npm ERR! gyp ERR! System Windows_NT 10.0.19042

npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\Users\\gjj\\Desktop\\boilerplate-mern-stack-master\\node_modules\\bcrypt\\lib\\binding\\bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=C:\\Users\\gjj\\Desktop\\boilerplate-mern-stack-master\\node_modules\\bcrypt\\lib\\binding" "--napi_version=7" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v88"

npm ERR! gyp ERR! cwd C:\Users\gjj\Desktop\boilerplate-mern-stack-master\node_modules\bcrypt

npm ERR! gyp ERR! node -v v15.11.0

npm ERR! gyp ERR! node-gyp -v v7.1.2

npm ERR! gyp ERR! not ok

npm ERR! node-pre-gyp ERR! build error

npm ERR! node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program 

Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\gjj\Desktop\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\gjj\Desktop\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding --napi_version=7 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v88' (1)

npm ERR! node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:\Users\gjj\Desktop\boilerplate-mern-stack-master\node_modules\node-pre-gyp\lib\util\compile.js:83:29)

npm ERR! node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:378:20)

npm ERR! node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1067:16)

npm ERR! node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)

npm ERR! node-pre-gyp ERR! System Windows_NT 10.0.19042

npm ERR! node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\gjj\\Desktop\\boilerplate-mern-stack-master\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"  

npm ERR! node-pre-gyp ERR! cwd C:\Users\gjj\Desktop\boilerplate-mern-stack-master\node_modules\bcrypt

npm ERR! node-pre-gyp ERR! node -v v15.11.0

npm ERR! node-pre-gyp ERR! node-pre-gyp -v v0.14.0

npm ERR! node-pre-gyp ERR! not ok

npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Users\gjj\AppData\Local\npm-cache\_logs\2021-03-25T09_06_34_937Z-debug.log

npm install bcryptjs --save 명령어를 쳤는데도 이런 에러가 납니다.....

0

John Ahn

안녕하세요  

간정진님   bcrypt 오류 인것 같은데

npm install bcryptjs --save  명령어로   bcrypt를 대체할 수 있는 bcryptjs 를 설치 합니다. 

그리고  const bcrypt = require('bcrypt); 이렇게 된 부분을 

const bcrypt = require('bcryptjs'); 이렇게 바꿔주세요 ~ 

에러서 요렇게만 해보세요

0

228

1

antd Menu 질문

0

259

1

movieTitle

0

218

1

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

0

410

1

npm run dev 오류

0

855

1

403 forbidden error

0

1067

2

npm run dev 오류

0

696

1

모듈이 없다는데요

0

1277

1

npm run dev 실행시 오류

0

5368

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

718

1

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

0

428

1

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

0

247

0

#2강 npm install

0

768

4

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

0

226

0

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

0

384

1