pomelo icon indicating copy to clipboard operation
pomelo copied to clipboard

官方示例Chat执行npm-install.bat报错怎么解决,我已安装vc++2012

Open LinDCheng opened this issue 6 years ago • 5 comments

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.

LinDCheng avatar May 03 '18 08:05 LinDCheng

不要用 visual studio 调试模式。直接使用命令行或 powershell 运行此命令

donhwa avatar May 31 '18 13:05 donhwa

应该是缺少c++组件, 管理员打开cmd,运行 npm install --global --production windows-build-tools https://github.com/nodejs/node-gyp#installation

lienhui97 avatar Mar 15 '20 05:03 lienhui97

npm install --global --production windows-build-tools 这个不行

gocpplua avatar May 24 '21 12:05 gocpplua

npm install --global --production windows-build-tools 这个不行

pomelo没有在维护了,欢迎右转 pinus.io (typescript化的pomelo)

donhwa avatar May 25 '21 03:05 donhwa

npm install --global --production windows-build-tools 这个不行

pomelo没有在维护了,欢迎右转 pinus.io (typescript化的pomelo)

玩不动啊

gocpplua avatar May 31 '21 07:05 gocpplua