首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >npm node-gyp构建错误

npm node-gyp构建错误
EN

Stack Overflow用户
提问于 2016-06-21 02:41:28
回答 1查看 779关注 0票数 0

我试图使用npm安装客户端会话,我得到了这个错误,我也尝试使用npm安装node_gyp。我也尝试使用git克隆它,但是我得到了这个node gyp错误。此外,我也找不到这个错误原因的适当文档。

代码语言:javascript
复制
 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! client-session@0.1.7 install: `node-gyp rebuild`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the client-session@0.1.7 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
EN

回答 1

Stack Overflow用户

发布于 2016-06-21 03:14:31

您需要在计算机上安装Python或修复当前安装。

请参考this answer了解如何做到这一点。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37929590

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档