You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to install angular 6, but when I try to tun the command with NPM it throw the below error, I am not sure how to clear the "find-npm-prefix" error.
module.js:549 throw err; ^ Error: Cannot find module 'find-npm-prefix' at Function.Module._resolveFilename (module.js:547:15) at Function.Module._load (module.js:474:25) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at Object.<anonymous> (C:\Users\love34\AppData\Roaming\npm\node_modules\npm\ lib\config\load-prefix.js:3:18) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3)
Hi @jenilChristo ,
Thanks for your reply!
I just tried it and it is showing below outtut, I have tried to reinstall the nodejs, but again it is showing same error.
Looks like a broken npm installation. While where points to C:\Program Files\..., the error message indicates code from C:\Users\love34\AppData\Roaming\npm\node_modules\npm is used.
Try removing C:\Users\love34\AppData\Roaming\npm and npm-cache folders and reinstall Node.
Activity
jenilChristo commentedon Jul 17, 2018
Check your node environment variable and make sure your
which npmandwhich nodepoints to the right env pathlovep34 commentedon Jul 18, 2018
Hi @jenilChristo ,
Thanks for your reply!
I just tried it and it is showing below outtut, I have tried to reinstall the nodejs, but again it is showing same error.
Please help!
jenilChristo commentedon Jul 18, 2018
Looks like you are on windows machine.
whichis supported only in UNIX based OS.You can use the variantwhereinstead in windows.lovep34 commentedon Jul 18, 2018
You are correct, here is the output with
wherebzoz commentedon Jul 18, 2018
Looks like a broken npm installation. While
wherepoints toC:\Program Files\..., the error message indicates code fromC:\Users\love34\AppData\Roaming\npm\node_modules\npmis used.Try removing
C:\Users\love34\AppData\Roaming\npmandnpm-cachefolders and reinstall Node.lovep34 commentedon Jul 19, 2018
@bzoz you are correct, now it is working.
Thanks for your help.