2014-11-29 3 views
1

NPM을 사용하여 설치하려고 시도 할 때 소금 및 해시 용 bcrypt를 사용하려고합니다. 다음 오류가 발생합니다. 내가 파이썬 설치, 설치 사기꾼, 노드와 NPM 오픈 SSL, C++의 현재 버전 및 필요한 SDK가NPM이 bcrypt 설치에 실패하는 이유

gyp ERR! configure error 
gyp ERR! stack error spawn ENOENT 
gyp ERR! stack at errnoException <child_process.js:1001:11> 
gyp ERR! stack at process.childProcess._handle.oneexit<child_process.js.792:34> 

gyp ERR! System Windows_NT 6.1.7601 
gyp ERR! command "node" "c:\program files\nodejs\\node_modules\\npm\\node_modules\\node-  gyp\\bin\\node-gyp.js" 
gyp ERR! cwd C:\Users\jfdfdf\desktop\tntw_wip\API\node_modules\bcrypt 
gyp ERR! node -v v 0.10.33 
gyp ERR! node-gyp -v v1.0.1 
gyp ERR! not ok 

gyp ERR! bcrypt 0.8.0.33 
gyp ERR! Exit status 1 
gyp ERR! 
gyp ERR! Failed at the bcrypt install 
gyp ERR! this is most likely a problem with the bcrypt package 
gyp ERR! not with npm itself 
gyp ERR! tell the author that this fails on your system 
gyp ERR! node-gyp rebuild 
gyp ERR! you can get their info via; 
gyp ERR! npm owner is bcrypt 
gyp ERR! there is likely additional loggin info above 
gyp ERR! system Windows_NT 6.1.7601 
gyp ERR! command "C:\\Program files\\node.js\\\\node.exe" "C:\\program files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "bcrypt" 
gyp ERR! cwd C:\users\jfdfdf\Desktop\tntw_wip\API 
gyp ERR! node -v v0.10.33 
gyp ERR! npm -v 1.4.28 
gyp ERR! code ELIFECYCLE 

. 프로젝트의 API 폴더를 뚫고 오른쪽 클릭을 사용하여 명령 창을 열어 모든 설치 작업을 수행합니다. 내가 사용하고있는 환경은 Windows 7 전문가이며 대괄호로 작업하고 있습니다.

나는 스택과 bcrypt 페이지 둘 다에서이 문제에 대한 몇 가지 해결책을 수색하고 따라 갔다. 아무 것도 작동하지 않는다. 노드를 설치하기 위해 NPM을 사용하는 것 이외에 새로운 것이므로이 도움이 필요합니다.

답변

1

당신은 그 가능성 OS 및 gyp 및/또는 bcrypt 버전 사이의 부정합의 로컬 bcrypt를 설치하고 간단하게 (당신의 node_modules 폴더 포함) 전체 코드베이스를 업로드하는 경우.

repo에서 노드 모듈을 제외하고 각 배포에 대해 서버에서 npm install을 실행하면 호스트 OS에 따라 자동으로 올바른 종속성을 가져와야합니다.

관련 문제