[英]Cannot install node-steam for node.js
我尝试从...安装node-steam并出现大错误
我该如何解决,这是我的错吗?
节点蒸汽: https : //github.com/seishun/node-steam
...
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:101:14)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node
-gyp\lib\configure.js:64:11
gyp ERR! stack at Object.oncomplete (fs.js:107:15)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modu
les\\node-gyp\\bin\\node-gyp.js" "configure" "build"
gyp ERR! cwd C:\Users\FongZooZ\Desktop\project\test\node_modules\steam\node_modu
les\ursa
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
...
请帮我!
C:\\python26\\python.exe
。 CMD
执行set PYTHON=C:\\python26\\python.exe
,然后运行npm install node-steam
,它应该可以工作。 注意:如果不将PYTHON添加到PATH变量中,则应在每次需要Python的安装之前键入set PYTHON=C:\\python26\\python.exe
。
您也可以在其官方站点中找到Linux二进制文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.