Python中文
首页
教程
问答
标签
搜索
登录
注册
节点.js使用python安装ws error
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>感谢安装了python.5.0版本。现在我在尝试安装ws(websocket)时遇到了这个错误。我仍然不知道我得到了什么错误或者它意味着什么。在</p> <pre><code>C:\Documents and Settings\Grimm>npm install python python@0.0.4 node_modules\python C:\Documents and Settings\Grimm>npm install ws - > bufferutil@1.2.1 install C:\Documents and Settings\Grimm\node_modules\ws\node_m odules\bufferutil > node-gyp rebuild C:\Documents and Settings\Grimm\node_modules\ws\node_modules\bufferutil>if not de fined npm_config_node_gyp (node "E:\Agar\Ogar-master\src\nodejs\node_modules\npm \bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild ) gyp ERR! UNCAUGHT EXCEPTION gyp ERR! stack Error: spawn UNKNOWN gyp ERR! stack at exports._errnoException (util.js:837:11) gyp ERR! stack at ChildProcess.spawn (internal/child_process.js:298:11) gyp ERR! stack at exports.spawn (child_process.js:339:9) gyp ERR! stack at exports.execFile (child_process.js:141:15) gyp ERR! stack at checkPythonVersion (E:\Agar\Ogar-master\src\nodejs\node_mo dules\npm\node_modules\node-gyp\lib\configure.js:86:5) gyp ERR! stack at E:\Agar\Ogar-master\src\nodejs\node_modules\npm\node_modul es\node-gyp\lib\configure.js:53:9 gyp ERR! stack at E:\Agar\Ogar-master\src\nodejs\node_modules\npm\node_modul es\which\which.js:82:18 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:82:15) gyp ERR! System Windows_NT 5.1.2600 gyp ERR! command "E:\\Agar\\Ogar-master\\src\\nodejs\\node.exe" "E:\\Agar\\Ogar- master\\src\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js " "rebuild" gyp ERR! cwd C:\Documents and Settings\Grimm\node_modules\ws\node_modules\bufferu til gyp ERR! node -v v4.1.1 gyp ERR! node-gyp -v v3.0.3 gyp ERR! This is a bug in `node-gyp`. gyp ERR! Try to update node-gyp and file an Issue if it does not help: gyp ERR! <https://github.com/nodejs/node-gyp/issues> > utf-8-validate@1.2.1 install C:\Documents and Settings\Grimm\node_modules\ws\no de_modules\utf-8-validate > node-gyp rebuild C:\Documents and Settings\Grimm\node_modules\ws\node_modules\utf-8-validate>if no t defined npm_config_node_gyp (node "E:\Agar\Ogar-master\src\nodejs\node_modules \npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) e lse (node rebuild ) gyp ERR! UNCAUGHT EXCEPTION gyp ERR! stack Error: spawn UNKNOWN gyp ERR! stack at exports._errnoException (util.js:837:11) gyp ERR! stack at ChildProcess.spawn (internal/child_process.js:298:11) gyp ERR! stack at exports.spawn (child_process.js:339:9) gyp ERR! stack at exports.execFile (child_process.js:141:15) gyp ERR! stack at checkPythonVersion (E:\Agar\Ogar-master\src\nodejs\node_mo dules\npm\node_modules\node-gyp\lib\configure.js:86:5) gyp ERR! stack at E:\Agar\Ogar-master\src\nodejs\node_modules\npm\node_modul es\node-gyp\lib\configure.js:53:9 gyp ERR! stack at E:\Agar\Ogar-master\src\nodejs\node_modules\npm\node_modul es\which\which.js:82:18 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:82:15) gyp ERR! System Windows_NT 5.1.2600 gyp ERR! command "E:\\Agar\\Ogar-master\\src\\nodejs\\node.exe" "E:\\Agar\\Ogar- master\\src\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js " "rebuild" gyp ERR! cwd C:\Documents and Settings\Grimm\node_modules\ws\node_modules\utf-8-v alidate gyp ERR! node -v v4.1.1 gyp ERR! node-gyp -v v3.0.3 gyp ERR! This is a bug in `node-gyp`. gyp ERR! Try to update node-gyp and file an Issue if it does not help: gyp ERR! <https://github.com/nodejs/node-gyp/issues> npm WARN optional dep failed, continuing bufferutil@1.2.1 npm WARN optional dep failed, continuing utf-8-validate@1.2.1 ws@0.8.0 node_modules\ws ├── options@0.0.6 └── ultron@1.0.2 C:\Documents and Settings\Grimm> </code></pre>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>您没有安装Python或Python环境变量未设置。在</p> <p>你必须从这里下载python:<a href="https://www.python.org/downloads/" rel="nofollow">https://www.python.org/downloads/</a></p>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
我是否正确构建了这个递归神经网络
5 回答
我是否正确理解acquire和realease是如何在python库“线程化”中工作的
2 回答
我是否正确理解Keras中的批次大小?
3 回答
我是否正确理解PyTorch的加法和乘法?
10 回答
我是否正确组织了我的Django应用程序?
3 回答
我是否正确计算执行时间?如果是这样,那么并行处理将花费更长的时间。这看起来很奇怪
10 回答
我是否每次创建新项目时都必须在PyCharm中安装numpy?(安装而不是导入)
1 回答
我是否每次运行jupyter笔记本时都必须重新启动内核?
1 回答
我是否用python安装了socks模块?
9 回答
我是否真的需要知道超过一种语言,如果我想要制作网页应用程序?
1 回答
我是否缺少spaCy柠檬化中的预处理功能?
2 回答
我是否缺少给定状态下操作的检查?
4 回答
我是否能够使用函数“count()”来查找密码中大写字母的数量((Python)
8 回答
我是否能够使用用户输入作为colorama模块中的颜色?
1 回答
我是否能够创建一个能够添加新Django.contrib.auth公司没有登录到管理面板的用户?
3 回答
我是否能够将来自多个不同网站的数据合并到一个csv文件中?
4 回答
我是否能够将目录路径转换为可以输入python hdf5数据表的内容?
9 回答
我是否能够等到一个对象被销毁,直到它创建另一个对象,然后在循环中运行time.sleep()
1 回答
我是否能够通过CBV创建用户实例,而不是首先创建表单?(Django)
10 回答
我是否要使它成为递归函数?
1 回答