windows-build-tools
windows-build-tools copied to clipboard
Window10 +node v12.16.2+npm v6.14.4 fail to install
log:
info lifecycle [email protected]~postinstall: [email protected]
4204 verbose lifecycle [email protected]~postinstall: unsafe-perm in lifecycle true
4205 verbose lifecycle [email protected]~postinstall: PATH: D:\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;D:\nodejs\npm_global\node_modules\windows-build-tools\node_modules.bin;D:\nodejs\npm_global\node_modules.bin;D:\Xshell6;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;D:\nodejs;C:\ProgramData\chocolatey\bin;D:\nodejs\npm_global;D:\ADB;C:\Program Files\dotnet;D:\Git\cmd;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;D:\openCV\opencv\build\x64\vc14\bin;D:\python\Scripts;D:\python;C:\Users\MH\AppData\Local\Microsoft\WindowsApps;C:\Users\MH\AppData\Roaming\npm;D:\Fiddler;C:\Users\MH.dotnet\tools;D:\WebStorm 2019.3.3\bin;;D:\Microsoft VS Code\bin;C:\Users\MH\AppData\Local\Microsoft\WindowsApps;
4206 verbose lifecycle [email protected]~postinstall: CWD: D:\nodejs\npm_global\node_modules\windows-build-tools
4207 silly lifecycle [email protected]~postinstall: Args: [ '/d /s /c', 'node ./dist/index.js' ]
4208 silly lifecycle [email protected]~postinstall: Returned: code: 1 signal: null
4209 info lifecycle [email protected]~postinstall: Failed to exec postinstall script
4210 timing action:postinstall Completed in 3059ms
4211 verbose unlock done using D:\nodejs\npm_cache_locks\staging-d1805f799b47b19e.lock for D:\nodejs\npm_global\node_modules.staging
4212 timing stage:rollbackFailedOptional Completed in 297ms
4213 timing stage:runTopLevelLifecycles Completed in 7100ms
4214 verbose stack Error: [email protected] postinstall: node ./dist/index.js
4214 verbose stack Exit status 1
4214 verbose stack at EventEmitter.node ./dist/index.js
4223 error Exit status 1
4224 error Failed at the [email protected] postinstall script.
4224 error This is probably not a problem with npm. There is likely additional logging output above.
4225 verbose exit [ 1, true ]