win7 64位 安装node-five 的出错 求大神指点
发布于 2年前 作者 thomas0836 2215 次浏览

Windows PowerShell 版权所有 © 2009 Microsoft Corporation。保留所有权利。

D:\我的资料库\Documents\GitHub> cd node-five D:\我的资料库\Documents\GitHub\node-five [master]> npm install -g npm WARN package.json node-five@0.0.1 No repository field. npm http GET https://registry.npmjs.org/node-qt/0.0.2 npm http GET https://registry.npmjs.org/shelljs/0.0.5pre4 npm http 304 https://registry.npmjs.org/shelljs/0.0.5pre4 npm http 304 https://registry.npmjs.org/node-qt/0.0.2

node-qt@0.0.2 install C:\Users\Administrator\AppData\Roaming\npm\node_modules
node-five\node_modules\node-qt node-gyp rebuild

C:\Users\Administrator\AppData\Roaming\npm\node_modules\node-five\node_modules\n ode-qt>node “C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\…\no de_modules\node-gyp\bin\node-gyp.js” rebuild gyp ERR! configure error gyp ERR! stack Error: Can’t find Python executable "python", you can set the PYT HON env variable. gyp ERR! stack at failNoPython (C:\Program Files\nodejs\node_modules\npm\nod e_modules\node-gyp\lib\configure.js:113:14) gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node -gyp\lib\configure.js:81:11 gyp ERR! stack at Object.oncomplete (fs.js:107:15) gyp ERR! System Windows_NT 6.1.7601 gyp ERR! command “node” “C:\Program Files\nodejs\node_modules\npm\node_modu les\node-gyp\bin\node-gyp.js” “rebuild” gyp ERR! cwd C:\Users\Administrator\AppData\Roaming\npm\node_modules\node-five\n ode_modules\node-qt gyp ERR! node -v v0.10.12 gyp ERR! node-gyp -v v0.10.0 gyp ERR! not ok npm ERR! weird error 1 npm ERR! not ok code 0

它好像是说 Can’t find Python executable "python", you can set the PYT HON env variable. 但我已经安装好了python 并设置了好了环境变量 alt 环境变量 alt 环境变量 alt 安装目录

1 回复

发现了 错误了 是 Python的 环境变量 写错了 但是 还有问题 就是 node-five 貌似只兼容 Python2.50 到 3.0 的版本 这个最新的3.3 就不行了 这个问题 解决了 之后 又要安装 .NET Framework 2.0 SDK 和 Microsoft Visual Studio 2005 额 各种的蛋疼

回到顶部