Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors running npm install (node-gyp) on MacOS #23

Open
kibernick opened this issue Nov 25, 2019 · 5 comments
Open

Errors running npm install (node-gyp) on MacOS #23

kibernick opened this issue Nov 25, 2019 · 5 comments

Comments

@kibernick
Copy link

kibernick commented Nov 25, 2019

Hi, I'm following along your Kubernetes articles and get an error running npm install https://rinormaloku.com/setting-up-react-application/

npm version: 6.13.1
OS: MacOS

I can send you the npm install log if you like, but after looking at some of the errors, I managed to fix this problem by looking at the quick fix listed here: nodejs/node-gyp#792 (and nodejs/nan#735)

@rinormaloku
Copy link
Owner

Hi @kibernick

What was the fix? Should I update the project or the article?

@kibernick
Copy link
Author

The fix was the following, not sure if a MacOS only issue, but would be worthwhile to add to the docs/article:

So a quick solution for all node-gyp issues around some of the packages in which is thrown, is to update all those packages with:

$ npm install -g npm-check-updates
$ npm-check-updates -u
$ npm install

@haikyuu
Copy link

haikyuu commented Apr 2, 2020

i deleted the global folder (yarn) and removed deps from its package.json file. And it did the trick

@ramast
Copy link

ramast commented May 9, 2020

I started deleting packages from my packages.json to find out which package is the culprit. Long story short, it was sass-loader. I've installed a different version and problem was resolved

@thedanfernandez
Copy link

In case others run into this issue:

npm install -g npm-check-updates failed with a permission denied issue on MacOS. If you get that error, it's likely this: Missing write access for local lib node modules

Once that was fixed, the above commands worked like a charm

The fix was the following, not sure if a MacOS only issue, but would be worthwhile to add to the docs/article:

So a quick solution for all node-gyp issues around some of the packages in which is thrown, is to update all those packages with:

$ npm install -g npm-check-updates
$ npm-check-updates -u
$ npm install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants