-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Error: Cannot find module 'internal/fs' when npm install on mac #9377
Comments
Hm, can you read over the discussion in #9355. |
I'm getting a #3606 vibe from these. Smells like an installer problem. |
What is the output of |
If you run |
Unable to reproduce the problem.
Could be because of the stale npm installation, but not sure how that could have happened though. Please try what @Fishrock123 suggested above. |
Same problem for me on a MacOsX Sierra:
I tried to uninstall / reinstall, but it didn't fix the problem |
@shufanshijie @giulio-sefaira How did you install node? With |
hi @gibfahn . I used brew. I uninstalled node, wiped entirely the node_modules library ( |
I tried to reinstall |
@giulio-sefaira @OnceMore2020 could you please run |
|
|
get this error in Ubuntu 16.04 |
@Leolik How did you install node? |
Also after removing /usr/local/lib/node_modules/ and the local project node_modules - error gone. |
I solved this issue thanks to the answer of @Leolik and @fane89 |
I ran into this problem too, but was able to resolve it by rolling back to an older version of node/npm and forcing a "flush" of the
|
Using Mac OS Sierra and installed Node + npm via Homebrew. This is still not functional for me. I've gone through the thread and continue to have:
I've removed |
Since I assume this kind of thing is also popping up on the npm issue tracker… @nodejs/npm @kenany do you know what’s up with this? |
@Swelly did you install npm separately from node? Node v7 comes shipped with npm v3.10.8 and a fresh install of node with homebrew should be coming with that version. what does |
@thealphanerd The reason that this happens is that the Node installer doesn't remove There's no easy way for npm to work around this itself without doing some super hacky stuff in a postinstall script, and the fix to the installer, as described above, should be pretty simple, so is there any way we can work to get it fixed there? |
@othiym23 the user above said that they installed via homebrew not our installer.. which I just tested and it does in fact uninstall the npm directory before it installs. I have an old branch where I tried to get an edit: I lied the above branch was doing the |
It hasn't always, and in any case it puts each version of npm in its own
(That I can confirm with total certainty that this is a reproducible problem with the way the Node installer works, though. So at least that part is within our control to fix, and it should be. This regularly causes problems for npm users aside from this one, although I'm blanking at the moment on the last time we saw this. |
@othiym23 so the main issue I ran into was trying to remove things in has to be fixed around https://github.com/nodejs/node/blob/master/tools/osx-pkg.pmdoc/02npm.xml#L8-L9 I can dig into this again tomorrow |
I'll dig in again too. I have some ideas on how we can do this. |
Seen this issue with v7.10.0, solution was downgrading to v6.10.3 like @balinterdi mentioned. Also needed to remove node_modules and reinstall. |
Ran into this issue when using This was with Node 8 and npm 5 btw. |
Also ran into this issue when on Node 8. Set my nvm to v6.10.3 fixed the issue. |
@adamreisnz @haleyparty Could (one of) you create a new issue with full stack trace? Thanks! |
@TimothyGu Will do now! |
For posterity: #13361 |
Hi, ive removed all the node.js package on my OS apt-get purge node.jsand manually remove/clear /home/user*/(.npm,.ionic), /root/(.npm,.ionic), /usr/lib/node_modules manual removal of the remainder helped and update your OS and new install node.js and ionic cu |
1 similar comment
Hi, ive removed all the node.js package on my OS apt-get purge node.jsand manually remove/clear /home/user*/(.npm,.ionic), /root/(.npm,.ionic), /usr/lib/node_modules manual removal of the remainder helped and update your OS and new install node.js and ionic cu |
On Windows, I confirm that deleting the directory : C:\Users<your_username>\AppData\Roaming\npm\node_modules solves the issue. |
@Fishrock123 Solution works for me on node v8.1.3 and npm 5.0.3 |
@Fishrock123 solution is generally working 💥 If it's not working for you make sure that your version of npm is actually under |
I get this error when I switched to older node with nvm. Here my solution. I tried in console |
For me this error came after using node Hope this will help someone. |
I also experienced it lately and solved it in the following way. For me there was a conflict but at the system level and it was caused by not cleaned properly, old nodejs installation. I couldn't use latest bower package, so after reading your comments
I've deleted the second directory as it was for nodejs 6.x, and all returned to normal. Cheers |
I had a similar problem and it seems that reinstalling gulp and also deleting node_modules directory in my project folder fixed the problem. I use node version 8.0.0 and npm 5.0.0. EDIT ~ I mean this is for people having problem with graceful-fs module working with gulp. |
I ran into this issue as well when using |
Reference solution: #9355 |
The text was updated successfully, but these errors were encountered: