question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed at the jss@9.8.7 postinstall script.

See original GitHub issue

When 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:closed
  • Created 5 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ericpylecommented, Feb 10, 2022

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 than jss@9.8.7. Run yarn why jss to view dependents.

0reactions
DustinReagancommented, May 22, 2019

I’m having the same problem:

PS D:\gitrepo\clevyr\test> node -v
v10.15.3
PS D:\gitrepo\clevyr\test> npm -v
6.4.1
PS D:\gitrepo\clevyr\test> npm install jss

> jss@9.8.7 postinstall D:\gitrepo\clevyr\test\node_modules\jss
> 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')"

[eval]:1
console.log('\u001b[35m\u001b[1mLove
            ^^^^^^^^^^^^^^^^^^^^^^^^

SyntaxError: Invalid or unexpected token
    at new Script (vm.js:80:7)
    at createScript (vm.js:274:10)
    at Object.runInThisContext (vm.js:326:10)
    at Object.<anonymous> ([eval]-wrapper:6:22)
    at Module._compile (internal/modules/cjs/loader.js:701:30)
    at evalScript (internal/bootstrap/node.js:589:27)
    at startup (internal/bootstrap/node.js:265:9)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
npm WARN test@1.0.0 No description
npm WARN test@1.0.0 No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
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! Exit status 1
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.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Dustin\AppData\Roaming\npm-cache\_logs\2019-05-22T15_35_10_928Z-debug.log

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 project npm init I tried to install jss (see above).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed at the node-sass@4.7.2 postinstall script - Stack Overflow
js and I've been trying to do npm install on one of my projects but saying: Failed at the node-sass@4.7.2 postinstall script. I...
Read more >
Salesforce CPQ Post Install Script error ...
'The Salesforce CPQ package installed correctly but the post-install script failed. Please review the error messages, make the necessary adjustments and go ...
Read more >
PostInstall script not running on MacOS - Apple Developer
I have created a package installer for MacOS with "productbuild" command line and adding the postinstall script in the package through command.
Read more >
Challenges in install Cypress in Ubuntu - LinkedIn
Failed at the cypress@5.3.0 postinstall script. The next attempt was the default one to try out as non-sudo user but again yielded the...
Read more >
Auspice doesn't install correctly - Nextstrain Discussion
Failed at the core-js@2.6.12 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found