• 카테고리

    질문 & 답변
  • 세부 분야

    프론트엔드

  • 해결 여부

    미해결

npm i 설치 실패 관련 문의

21.04.18 09:47 작성 조회수 485

1

npm i 설치 시 , 추가적으로 설치해야하는 프로그램들이 더 있을까요? python 경로 오류로 삭제 후 다시 설치하니 VS에러가 발생합니다 ㅠ

ahnju@DESKTOP-U5A4ULH MINGW64 ~/Downloads/VUE-ENDGAME/vue-til-server (master)

$ npm i

> bcrypt@3.0.8 install C:\Users\ahnju\Downloads\VUE-ENDGAME\vue-til-server\node_modules\bcrypt

> node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Using needle for node-pre-gyp https download 

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-v83-win32-x64-unknown.tar.gz 

node-pre-gyp WARN Pre-built binaries not found for bcrypt@3.0.8 and node@14.15.4 (node-v83 ABI, unknown) (falling back to source compile with node-gyp) 

gyp ERR! find VS 

gyp ERR! find VS msvs_version not set from command line or npm config

gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt        

gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer  

gyp ERR! find VS looking for Visual Studio 2015

gyp ERR! find VS - not found

gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8

gyp ERR! find VS 

gyp ERR! find VS **************************************************************

gyp ERR! find VS You need to install the latest version of Visual Studio

gyp ERR! find VS including the "Desktop development with C++" workload.

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

gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows

gyp ERR! find VS **************************************************************

gyp ERR! find VS

gyp ERR! configure error

gyp ERR! stack Error: Could not find any Visual Studio installation to use

gyp ERR! stack     at VisualStudioFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:121:47)

gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:74:16

gyp ERR! stack     at VisualStudioFinder.findVisualStudio2013 (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:351:14)

gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:70:14

gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:372:16

gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7

gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16

gyp ERR! stack     at ChildProcess.exithandler (child_process.js:315:5)

gyp ERR! stack     at ChildProcess.emit (events.js:315:20)

gyp ERR! stack     at maybeClose (internal/child_process.js:1048:16)

gyp ERR! System Windows_NT 10.0.19042

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\\ahnju\\Downloads\\VUE-ENDGAME\\vue-til-server\\node_modules\\bcrypt\\lib\\binding\\bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=C:\\Users\\ahnju\\Downloads\\VUE-ENDGAME\\vue-til-server\\node_modules\\bcrypt\\lib\\binding" "--napi_version=7" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v83"

gyp ERR! cwd C:\Users\ahnju\Downloads\VUE-ENDGAME\vue-til-server\node_modules\bcrypt

gyp ERR! node -v v14.15.4

gyp ERR! node-gyp -v v5.1.0

gyp ERR! not ok

node-pre-gyp ERR! build error 

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\ahnju\Downloads\VUE-ENDGAME\vue-til-server\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\ahnju\Downloads\VUE-ENDGAME\vue-til-server\node_modules\bcrypt\lib\binding --napi_version=7 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1)

node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:\Users\ahnju\Downloads\VUE-ENDGAME\vue-til-server\node_modules\node-pre-gyp\lib\util\compile.js:83:29)

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

node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:1048:16)

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

node-pre-gyp ERR! System Windows_NT 10.0.19042

node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\ahnju\\Downloads\\VUE-ENDGAME\\vue-til-server\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"

node-pre-gyp ERR! cwd C:\Users\ahnju\Downloads\VUE-ENDGAME\vue-til-server\node_modules\bcrypt

node-pre-gyp ERR! node -v v14.15.4

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

node-pre-gyp ERR! not ok

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\ahnju\Downloads\VUE-ENDGAME\vue-til-server\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\ahnju\Downloads\VUE-ENDGAME\vue-til-server\node_modules\bcrypt\lib\binding --napi_version=7 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1)

npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\nodemon\node_modules\fsevents):

npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! bcrypt@3.0.8 install: `node-pre-gyp install --fallback-to-build`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the bcrypt@3.0.8 install script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

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

npm ERR!     C:\Users\ahnju\AppData\Roaming\npm-cache\_logs\2021-04-18T00_42_06_418Z-debug.log

답변 3

·

답변을 작성해보세요.

0

카도아보님의 프로필

카도아보

2021.09.11

저도 같은 상황입니다. 노드 모듈삭제 하고 npm i bycript 하면 위와 같은 에러가 납니다... 

0

안준영님의 프로필

안준영

질문자

2021.05.02

말씀하신대로 삭제후 npm i bycript실행하면, 

$ npm i bycript

npm ERR! code E404

npm ERR! 404 Not Found - GET https://registry.npmjs.org/bycript - Not found

npm ERR! 404

npm ERR! 404  'bycript@latest' is not in the npm registry.

npm ERR! 404 You should bug the author to publish it (or use the name yourself!)

npm ERR! 404 

npm ERR! 404 Note that you can also install from a

npm ERR! 404 tarball, folder, http url, or git url.

 

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

npm ERR!     C:\Users\ahnju\AppData\Roaming\npm-cache\_logs\2021-05-01T23_33_12_506Z-debug.log

가 발생합니다...

=====================================

바로 이전 강의에서 nvm install 12.14.0실행하면,

Can not determine how many core(s) are available, running in single-threaded mode.

Please report an issue on GitHub to help us make nvm run faster on your computer!

Local cache found: ${NVM_DIR}/.cache/src/node-v12.14.0/node-v12.14.0.tar.xz

Checksums match! Using existing downloaded archive ${NVM_DIR}/.cache/src/node-v12.14.0/node-v12.14.0.tar.xz

$>./configure --prefix=/c/Users/ahnju/.nvm/versions/node/v12.14.0 <

which: no python2.7 in (/mingw64/bin:/usr/bin:/c/Users/ahnju/bin:/c/Program Files (x86)/NAT Service:/c/Program Files (x86)/Common Files/Oracle/Java/javapath:/c/Program Files (x86)/Intel/iCLS Client:/c/Program Files/Intel/iCLS Client:/c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/c/WINDOWS/System32/WindowsPowerShell/v1.0:/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL:/c/Program Files/Intel/Intel(R) Management Engine Components/DAL:/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT:/c/Program Files/Intel/Intel(R) Management Engine Components/IPT:/c/Program Files/Intel/WiFi/bin:/c/Program Files/Common Files/Intel/WirelessCommon:/c/WINDOWS/System32/OpenSSH:/c/Program Files (x86)/PuTTY:/c/Program Files/nodejs:/cmd:/c/Users/ahnju/AppData/Local/Programs/Python/Python39/Scripts:/c/Users/ahnju/AppData/Local/Programs/Python/Python39:/c/Users/ahnju/AppData/Local/Microsoft/WindowsApps:/c/Users/ahnju/AppData/Roaming/npm:/c/Users/ahnju/AppData/Local/Programs/Microsoft VS Code/bin)

which: no python2 in (/mingw64/bin:/usr/bin:/c/Users/ahnju/bin:/c/Program Files (x86)/NAT Service:/c/Program Files (x86)/Common Files/Oracle/Java/javapath:/c/Program Files (x86)/Intel/iCLS Client:/c/Program Files/Intel/iCLS Client:/c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/c/WINDOWS/System32/WindowsPowerShell/v1.0:/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL:/c/Program Files/Intel/Intel(R) Management Engine Components/DAL:/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT:/c/Program Files/Intel/Intel(R) Management Engine Components/IPT:/c/Program Files/Intel/WiFi/bin:/c/Program Files/Common Files/Intel/WirelessCommon:/c/WINDOWS/System32/OpenSSH:/c/Program Files (x86)/PuTTY:/c/Program Files/nodejs:/cmd:/c/Users/ahnju/AppData/Local/Programs/Python/Python39/Scripts:/c/Users/ahnju/AppData/Local/Programs/Python/Python39:/c/Users/ahnju/AppData/Local/Microsoft/WindowsApps:/c/Users/ahnju/AppData/Roaming/npm:/c/Users/ahnju/AppData/Local/Programs/Microsoft VS Code/bin)

Please use Python 2.7

nvm: install v12.14.0 failed!

이게 발생했었는데, 여기서부터 문제인건가요? Python을 삭제하고 다시설치했는데도 위와 같이 문구가 나오네요..

0

안녕하세요 준영님, 현재 프로젝트에 설치된 node_modules 폴더를 다 삭제하고 npm i bycript 명령어 실행하신 다음에 다시 npm i로 노드 패키지들 설치해 보시겠어요? :)