2014-01-15 2 views
0

node.js를 사용하여 Android/ios 용 PUSh 알림 작업을 시도하고 있습니다. xml2json을 설치하려고 할 때 아래 오류가 발생합니다. 내가 그것을npm install xml2json을 설치하지 못했습니다.

gyp ERR! build error 
gyp ERR! stack Error: not found: make 
gyp ERR! stack  at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:43:28) 
gyp ERR! stack  at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:46:29) 
gyp ERR! stack  at /usr/local/lib/node_modules/npm/node_modules/which/which.js:57:16 
gyp ERR! stack  at Object.oncomplete (fs.js:107:15) 
gyp ERR! System Darwin 12.5.0 
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" 
gyp ERR! cwd /Users/bertils/node_modules/xml2json/node_modules/node-expat 
gyp ERR! node -v v0.10.24 
gyp ERR! node-gyp -v v0.12.1 
gyp ERR! not ok 
npm ERR! [email protected] install: `node-gyp rebuild` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] install script. 
npm ERR! This is most likely a problem with the node-expat 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 their info via: 
npm ERR!  npm owner ls node-expat 
npm ERR! There is likely additional logging output above. 

npm ERR! System Darwin 12.5.0 
npm ERR! command "node" "/usr/local/bin/npm" "install" "xml2json" 
npm ERR! cwd /Users/bertils 
npm ERR! node -v v0.10.24 
npm ERR! npm -v 1.3.21 
npm ERR! code ELIFECYCLE 
npm ERR! 
npm ERR! Additional logging details can be found in: 
npm ERR!  /Users/bertils/npm-debug.log 
npm ERR! not ok code 0 

답변

1

make 도구 같은데 해결하기 위해 도와주세요 당신의 시스템에서 사용할 수 없습니다.

는이 문제를 해결하려면, 당신은 두 가지 옵션이 있습니다 :

  • 이미 설치 Xcode있는 경우 : Xcode > Preferences > Downloads-

이동하고 "명령 행 도구"라는 구성 요소를 설치합니다. 관련 도구는 모두 /usr/bin에 배치됩니다.

이동, 개발자 애플 ID로 로그인하고 "명령 행 도구"를 검색, 다운로드하고 해당 파일을 설치합니다.

+0

명령 줄 도구를 설치 한 후 감사합니다. :) –

관련 문제