2013-08-28 11 views
6

Ich versuche, Zookeeper 3.4.5 auf Windows 7 mit npm 1.3.9 zu installieren. Als ich'gyp' mit Exitcode: 1 beim Versuch, zookeeper auf Fenster mit npm zu installieren

npm eingeben zookeeper

installiert ich bekomme

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

gleiche Problem, aber die akzeptierte Lösung hat mir nicht geholfen – Reeebuuk

Antwort

2

Da dies ein großes und lästiges Problem war, dass ich in vielen verschiedenen (nicht-permanenten Wegen) gelöst habe, habe ich endlich gefunden die Antwort hier:

Error installing node-gyp on ubuntu

Da Sie unter Windows sind, versuchen Sie eine frühere Version von Python (für mich wurde mit 2.6) für Windows.

1

Versuchen Sie diese node-gyp installation. Es funktioniert für mich.

War genug:

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