Error: Cannot find module 'C:\Users\myalmala\AppData\Roaming\npm\node_modules@angular\cli\bin\ng'
Asked
Active
Viewed 55 times
1 Answers
0
- Uninstall the angular cli if you have already installed it
npm uninstall -g @angular/cli
- Install the angular cli globally now.
npm install -g @angular/cli

Haris Iqbal
- 36
- 4
-
uninstalled angular and installed angular now it is showing this error : npm ERR! code EEXIST npm ERR! path C:\Users\myalmal\AppData\Roaming\npm\node_modules\angular-cli\bin\ng npm ERR! dest C:\Users\myalmal\AppData\Roaming\npm\ng – Y mounika Sep 07 '21 at 06:05
-
seems like there is a problem with your node modules. try `npm install` – Haris Iqbal Sep 07 '21 at 06:15
-
i tried npm install - , now i got this error : 'CALL "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nodejs\\node_modules\npm\bin\npm-cli.js" prefix -g' is not recognized as an internal or external command, operable program or batch file. npm WARN saveError ENOENT: no such file or directory, open – Y mounika Sep 07 '21 at 06:21
-
-
i tried it , i got these errors : npm ERR! code ELIFECYCLE npm ERR! syscall spawn C:\ npm ERR! file C:\ npm ERR! path C:\ npm ERR! errno -4058 npm ERR! core-js-pure@3.17.2 postinstall: `node -e "try{require('./postinstall')}catch(e){}"` npm ERR! spawn C:\ ENOENT npm ERR! npm ERR! Failed at the core-js-pure@3.17.2 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. – Y mounika Sep 07 '21 at 06:42