In Angular 5 project getting gyp errors on npm install

65 views Asked by At

I am trying "npm install" in angular 5 project, but its giving gyp errors . does anyone have any idea about the errors visible in the following screenshots.

Image contains the detail of errors

I have tried to clear cache , deleted package-lock and even installed and configured python 2. but nothing worked.

1

There are 1 answers

0
Sajeetharan On

It looks like it is failing at node-gyp which needs python, you can set the python path with npm install

npm install --python=python2.7