if not defined npm_config_node_gyp
-
添加 node 鼠标库 mouse-hooks
安装过程中遇到这个问题无法解决,网上搜索到的方案也不管用, 此问题已经困扰1天了
error F:\app\node_modules\mouse-hooks: Command failed. Exit code: 1 Command: npm run rebuild Arguments: Directory: F:\app\node_modules\mouse-hooks Output: > mouse-hooks@0.4.1 rebuild F:\app\node_modules\mouse-hooks > node-gyp rebuild F:\app\node_modules\mouse-hooks>if not defined npm_config_node_gyp (node "C:\Users\weitai\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\weitai\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild ) windows.cc win_delay_load_hook.cc C:\\Users\\weitai\\AppData\\Local\\node-gyp\\Cache\\14.15.5\\x64\\node.lib : fatal error LNK1106: 0x377074 [F:\app\node_modules\mouse-hooks\build\addon.vcxproj] gyp ERR! build error gyp ERR! stack Error: `D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Users\weitai\AppData\Roaming\npm\node_modules\node-gyp\lib\build.js:194:23) gyp ERR! stack at ChildProcess.emit (events.js:315:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12) gyp ERR! System Windows_NT 10.0.21327 gyp ERR! command "D:\\Program Files\\nodejs\\node.exe" "C:\\Users\\weitai\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" gyp ERR! cwd F:\app\node_modules\mouse-hooks gyp ERR! node -v v14.15.5 gyp ERR! node-gyp -v v7.1.2 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! mouse-hooks@0.4.1 rebuild: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the mouse-hooks@0.4.1 rebuild script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\weitai\AppData\Roaming\npm-cache\_logs\2021-03-07T10_28_34_716Z-debug.log info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
西南地区IT社群(QQ)
- 云南
- 【昆明网页设计交流吧】243627302
- 【昆明nodejs交流吧】 243626749
- 【VUE】838405306
- 【云南程序员总群】343606807
- 【昆明UI设计】104031254
- 【云南软件外包】15547313
- 贵州
- 【PHP/java源码/站长交流群】55692114
- 四川
- 【成都Java/JavaWeb交流】86669225
- 【vaScript+PHP+MySql】116270060
- 【UI设计/设计交流学习群】135794928
- 重庆
- 【诺基亚 JAVA游戏博物馆】 559479780
- 【PHP,Java,Python,C++接单】 442103442
- 西藏