pomelo
pomelo copied to clipboard
官方示例Chat执行npm-install.bat报错怎么解决,我已安装vc++2012
gyp ERR! build error gyp ERR! stack Error: Command failed: reg query "HKLM\Software\Microsoft\MSBuild\ToolsVersions" /s /reg:32 gyp ERR! stack 'reg' �����ڲ����ⲿ���Ҳ���ǿ����еij��� gyp ERR! stack ���������ļ��� gyp ERR! stack gyp ERR! stack Can't find "msbuild.exe". Do you have Microsoft Visual Studio C++ 2008+ installed? gyp ERR! stack at D:\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:138:25 gyp ERR! stack at ChildProcess.exithandler (child_process.js:282:5) gyp ERR! stack at emitTwo (events.js:126:13) gyp ERR! stack at ChildProcess.emit (events.js:214:7) gyp ERR! stack at maybeClose (internal/child_process.js:925:16) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5) gyp ERR! System Windows_NT 10.0.16299 gyp ERR! command "D:\nodejs\node.exe" "D:\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd D:\pomelo\chatofpomelo-websocket-tutorial-starter\game-server\node_modules\heapdump gyp ERR! node -v v8.11.1 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok npm info lifecycle [email protected]~install: Failed to exec install script npm WARN [email protected] No description npm WARN [email protected] No repository field. npm WARN [email protected] No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
不要用 visual studio 调试模式。直接使用命令行或 powershell 运行此命令
应该是缺少c++组件, 管理员打开cmd,运行 npm install --global --production windows-build-tools
https://github.com/nodejs/node-gyp#installation
npm install --global --production windows-build-tools 这个不行
npm install --global --production windows-build-tools 这个不行
pomelo没有在维护了,欢迎右转 pinus.io (typescript化的pomelo)
npm install --global --production windows-build-tools 这个不行
pomelo没有在维护了,欢迎右转 pinus.io (typescript化的pomelo)
玩不动啊