Failed at the jss@9.8.7 postinstall script.
See original GitHub issueWhen running npm install I am receiving an error where npm is unable to execute the jss@9.8.7 postinstall script.
npm error log:
npm ERR! file C:Program
npm ERR! path C:Program
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn C:Program
npm ERR! jss@9.8.7 postinstall: node -e "console.log('\u001b[35m\u001b[1mLove JSS? You can now support us on open collective:\u001b[22m\u001b[39m\n > \u001b[34mhttps://opencollective.com/jss/donate\u001b[0m')"
npm ERR! spawn C:Program ENOENT
npm ERR!
npm ERR! Failed at the jss@9.8.7 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Versions:
- jss: 9.8.7
- OS: Windows
- Terminal: Gitbash
- NPM: 6.4.1
- Node: 10.13.0
Feel free to add any additional versions which you may think are relevant to the bug.
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (3 by maintainers)
Top GitHub Comments
For me, I needed to upgrade from
@material-ui/core@3.9.4
to@material-ui/core@4.12.3
(at least@material-ui[/core@4.0.0-alpha.3
) in order for yarn to bump the jss dependency to something higher thanjss@9.8.7
. Runyarn why jss
to view dependents.I’m having the same problem:
I started from a fresh install of Windows 10 (no Node install). I installed node using chocolatey:
choco install nodejs-lts
I init’d a brand new npm projectnpm init
I tried to install jss (see above).