0

Whenever I npm install, I get an

npm ERR! errno 1
npm ERR! [email protected] postinstall: `node scripts/build.js`
npm ERR! Exit status 1
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.```

I've tried deleting node_modules, but I am getting not luck. 
5
  • Does this answer your question? npm install ->Failed at the [email protected] postinstall script Commented Nov 5, 2020 at 17:57
  • I have numerous package-lock.json in my node_modules. Shouldn't just deleting node_modules do the trick? That said I do have a package.json outside my node_modules. What if I delete that? Commented Nov 5, 2020 at 18:22
  • I think the recommendation is to blow away node_modules directory and the package-lock.json in your current directory. Otherwise when you install again, it will install the same broken thing. It's the "reboot" for an npm install. Commented Nov 6, 2020 at 3:58
  • Are you running it within docker? Because I had the same error with docker windows. I switched to linux and everything worked fine. Commented Nov 6, 2020 at 12:12
  • SOLVED: Downloaded the wrong version of nodejs. Commented Nov 6, 2020 at 21:42

3 Answers 3

4

You have to upgrade your node-sass 4.13.1 to [email protected] enter image description here

Sign up to request clarification or add additional context in comments.

Comments

-1

Install earlier version of Node. Version 12.16 should work.

Comments

-1

Installing node version 10.24.1 worked for me

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.