2017-03-06 8 views
1

우분투에 ZeroRPC를 설치하려고했습니다. 이미 ZeroMQ를 설치했지만 ZeroRPC를 설치하는 중에 이러한 오류가 표시됩니다. 나는 기본적으로 node.js에서 백그라운드에서 JSON 객체를 보내고 Python 코드에서 JSON을받는 python 스크립트를 실행하려고합니다. 또한 파이썬 코드는 항상 백엔드에서 실행되어야합니다.우분투에 ZeroRPC를 설치하지 못했습니다.

gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1 
gyp ERR! stack  at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:354:16) 
gyp ERR! stack  at emitTwo (events.js:87:13) 
gyp ERR! stack  at ChildProcess.emit (events.js:172:7) 
gyp ERR! stack  at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) 
gyp ERR! System Linux 4.4.0-21-generic 
gyp ERR! command "/usr/bin/nodejs" "/usr/bin/node-gyp" "rebuild" 
gyp ERR! cwd /home/user/node_modules/msgpack 
gyp ERR! node -v v4.2.6 
gyp ERR! node-gyp -v v3.0.3 
gyp ERR! not ok 

/home/user 
`-- [email protected] 

npm WARN enoent ENOENT: no such file or directory, open '/home/user/package.json' 
npm WARN user No description 
npm WARN user No repository field. 
npm WARN user No README data 
npm WARN user No license field. 
npm ERR! Linux 4.4.0-21-generic 
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "zerorpc" 
npm ERR! node v4.2.6 
npm ERR! npm v3.5.2 
npm ERR! code ELIFECYCLE 

npm ERR! [email protected] install: `node-gyp rebuild` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'. 
npm ERR! Make sure you have the latest version of node.js and npm installed. 
npm ERR! If you do, this is most likely a problem with the msgpack package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  node-gyp rebuild 
npm ERR! You can get information on how to open an issue for this project with: 
npm ERR!  npm bugs msgpack 
npm ERR! Or if that isn't available, you can get their info via: 
npm ERR!  npm owner ls msgpack 
npm ERR! There is likely additional logging output above. 

npm ERR! Please include the following file with any support request: 
npm ERR!  /home/user/npm-debug.log 

npm ERR!  npm bugs msgpack 
npm ERR! Or if that isn't available, you can get their info via: 
npm ERR!  npm owner ls msgpack 
npm ERR! There is likely additional logging output above. 

npm ERR! Please include the following file with any support request: 
npm ERR!  /home/user/npm-debug.log 

설치 및 설치에 실패했습니다.

답변

0

오류는 zerorpc가 아니라 msgpack을 빌드하지 못했습니다. 오류 메시지에서 수행 할 작업을 수행하십시오. 이렇게하면 msgpack을 성공적으로 빌드하는 데 도움이됩니다.

0

방금 ​​같은 문제가 발생했습니다.

내 프로젝트에서 성공적인 빌드를 얻는 데 도움이되는 또 다른 대답 (node-gyp rebuild error while installing node modules)이 있습니다. 분명

패키지 관리자 캐시

sudo npm cache clean -f 

설치 노드 버전 관리자 V4.3.0에

sudo npm install -g n 

업데이트 (이 버전의 중요성을 조사하지 않은하지만 동일 보았다 내 문제를 해결 위 하나)

sudo n 4.3.0 

라이브러리 설치

sudo npm install zerorpc 
관련 문제