2016-06-20 11 views
0

Ich habe versucht, Client-Sitzung mit npm zu installieren, und ich bekomme diesen Fehler auch ich habe versucht, node_gyp mit npm zu installieren. Auch ich habe versucht, es mit Git zu klonen, aber ich bekomme diesen Knoten gyp Fehler. Auch kann ich keine richtigen Dokumente für die Ursache dieses Fehlers finden.npm node-gyp Erstellungsfehler

if not defined npm_config_node_gyp (node "C:\Program Files (x86)\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node- 
    gyp.js" rebuild) else (node rebuild) 
    gyp ERR! configure error 
    gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. 
    gyp ERR! stack  at failNoPython (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:116:14) 
    gyp ERR! stack  at C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:71:11 
    gyp ERR! stack  at FSReqWrap.oncomplete (fs.js:82:15) 
    gyp ERR! System Windows_NT 6.3.9600 
    gyp ERR! command "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" 
    gyp ERR! cwd C:\fuckyou\node_modules\client-session 
    gyp ERR! node -v v4.2.4 
    gyp ERR! node-gyp -v v3.0.3 
    gyp ERR! not ok 
    npm ERR! Windows_NT 6.3.9600 
    npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "client-session" 
    npm ERR! node v4.2.4 
    npm ERR! npm v2.14.12 
    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! This is most likely a problem with the client-session 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 client-session 
    npm ERR! There is likely additional logging output above. 

    npm ERR! Please include the following file with any support request: 
    npm ERR!  C:\fuckyou\npm-debug.log 

Antwort

1

Sie müssen Python auf Ihrem Computer installieren oder die aktuelle Installation reparieren.

Wie das geht, erfahren Sie unter this answer.

+0

funktioniert nicht immer noch der Fehler persist –

+0

hatte noch nie ein Problem mit Npm installieren bis jetzt –

+0

dies ist, weil npm auf Python-Interpreter basiert, um dieses Modul zu bauen. Können Sie cmd.exe starten, führen Sie "Python" -Befehl von dort und sehen, ob es funktioniert? –