windows-build-tools
windows-build-tools copied to clipboard
installation fails at postinstall
npm install --global windows-build-tools
> [email protected] postinstall node_modules\windows-build-tools
> node ./dist/index.js
npm ERR! file bash
npm ERR! path bash
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn bash
npm ERR! [email protected] postinstall: `node ./dist/index.js`
npm ERR! spawn bash ENOENT
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
> node -v
v8.12.0
> npm -v
6.4.1
Windows 10 Tried with Git Bash, cmd, and PowerShell as administrator
Additional logging:
4076 info lifecycle [email protected]~postinstall: [email protected]
4077 verbose lifecycle [email protected]~postinstall: unsafe-perm in lifecycle true
4080 silly lifecycle [email protected]~postinstall: Args: [ '-c', 'node ./dist/index.js' ]
4081 info lifecycle [email protected]~postinstall: Failed to exec postinstall script
4082 silly lifecycle [email protected]~postinstall: Returned: code: -4058 signal: null
4088 verbose stack Error: [email protected] postinstall: `node ./dist/index.js`
4088 verbose stack spawn bash ENOENT
4088 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
4088 verbose stack at onErrorNT (internal/child_process.js:362:16)
4088 verbose stack at _combinedTickCallback (internal/process/next_tick.js:139:11)
4088 verbose stack at process._tickCallback (internal/process/next_tick.js:181:9)
4089 verbose pkgid [email protected]
4091 verbose Windows_NT 10.0.17134
4093 verbose node v8.12.0
4094 verbose npm v6.4.1
I also have this issue