2013-08-28 9 views
6

Sto provando a installare Zookeeper 3.4.5 su Windows 7 utilizzando npm 1.3.9. Quando entro'gyp' file con codice di uscita: 1 quando si tenta di installare zookeeper sulla finestra utilizzando npm

npm installare Zookeeper

ottengo

File "C:\Program Files\npm-1.3.9\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\MSVSProject.py", line 181, in AddFileConfig 
raise ValueError('AddFileConfig: file "%s" not in project.' % path) 
ValueError: AddFileConfig: file "." not in project. 
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1 
gyp ERR! stack  at ChildProcess.onCpExit (C:\Program Files\npm-1.3.9\node_modules\npm\node_modules\node-gyp\lib\configure.js:424:16) 
gyp ERR! stack  at ChildProcess.EventEmitter.emit (events.js:98:17) 
gyp ERR! stack  at Process.ChildProcess._handle.onexit (child_process.js:789:12) 
gyp ERR! System Windows_NT 6.1.7601 
gyp ERR! command "node" "C:\\Program Files\\npm-1.3.9\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" 
gyp ERR! cwd C:\Program Files\Zookeeper-3.4.5\node_modules\zookeeper 
gyp ERR! node -v v0.10.17 
gyp ERR! node-gyp -v v0.10.9 
gyp ERR! not ok 
npm ERR! weird error 1 
npm ERR! not ok code 0 
+0

Stesso problema, ma la soluzione accettata non mi ha aiutato – Reeebuuk

risposta

2

Dato che questo è stato un problema enorme e fastidioso, che ho risolto in molti diversi (modi non permanenti), ho finalmente trovato la risposta qui:

Error installing node-gyp on ubuntu

Dal momento che siete su Windows, provare a utilizzare una versione precedente di Python (per me stava usando 2.6) per Finestre.

1

Prova questo node-gyp installation. Funziona per me.

era abbastanza:

npm install --global --production windows-build-tools