1

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
  • node-gyp requires python2. Install it. Commented Jul 11, 2023 at 14:11

1 Answer 1

1

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.