-2

When I try to install the project dependencies with npm I get this error:

enter image description here

Anyone could help me ?

VLAZ
  • 26,331
  • 9
  • 49
  • 67
  • Does this answer your question? [NPM install fails with node-gyp](https://stackoverflow.com/questions/33896511/npm-install-fails-with-node-gyp) – VLAZ Jan 13 '23 at 18:21

1 Answers1

-1

Can you provide a sample package.json? It seems to be a issue with make. What you can do in the mean time you could try deleting the package-lock.json and then do a npm install. See if that fixes the issue.

If it threw that error from 1st time running npm install that's probably not the issue.

One other thing you could try is to make sure you have the build tools installed on your macOS.

xcode-select --install

EDIT:

  1. Try to delete the library from the cache.
rm -rf ~/LibraryCaches/node-gyp
  1. Delete package-lock.json, /node_modules/ folder, and ~/.node-gyp/ folders.
rm package-lock.json && rm -rf node_modules && rm -rf ~/.node-gyp
  1. Rerun
npm install

You can also check these steps to further debug your issue.

Hope it helps.