Member-only story
So you’ve come to this:
npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1
The first thing is to PANIC, and find that panic button and start pressing it!
If your keyboard doesn’t have that key (like mine), then we’ll have to fix that. Anyway, find what is exactly causing it! It’s usually a few lines up there!
If your error is something like:
Undefined variable module_name in binding.gyp while trying to load binding.gyp
then this might do the trick
rm -rf node_modules&&rm package-lock.json
npm update
If that doesn’t work, maybe try dropping the npm version and see. If your error is something else, use that specific error to continue your search, good luck!