I just removed Node and reinstalled it with homebrew. I first installed without npm. Then removed that version and installed node with npm.
The install was successful but now I cannot use NPM.
Anything I try with NPM I get error
module.js:338
throw err;
^
Error: Cannot find module 'are-we-there-yet'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:286:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npmlog/log.js:2:16)
at Module._compile (module.js:434:26)
at Object.Module._extensions..js (module.js:452:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
I absolutely have no idea what to try. No npm command I can try. I tried removing and reinstalling node with homebrew but that doesnt work. Please help
UPDATE
I saw this answer: npm doesn't work, get always this error -> Error: Cannot find module 'are-we-there-yet'
But the solution did not work. I did not even have the folder
cd /usr/local/Cellar/node/0.10.22/lib/node_modules
In the lib folder there was no node_modules.
even npm i npm -g
did not work.
Same issue when i install yarn
, try:
install yarn
cd /usr/local/lib/node_modules/npm
sudo yarn add are-we-there-yet
it's working fine for me ,hope this helps for u.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With