npm install ->Failed at the [email protected] postinstall script

Joe Sleiman picture Joe Sleiman · Jan 17, 2018 · Viewed 83.6k times · Source

I'm trying to do npm install and an error appears :

Failed at the [email protected] postinstall script.

I tried to delete node_modules and then reinstall it, same error appears. what will be the solution?

node v8.9.3
npm v5.4.2
ionic 3.19.0

Answer

Michaël Polla picture Michaël Polla · Jun 18, 2018

Got the same problem (node v10.3.0, ionic 3.13.0). This worked :

  • Delete package-lock.json,
  • Delete node_modules folder,
  • Run npm install again.