-3

I am not able to install angula, i tried with clear npm cache npm cache clean --force. but still not able to install. please help me enter image description here

I am using node version - 8.11.3 Npm version - 6.1.0

R. Richards
  • 24,603
  • 10
  • 64
  • 64

2 Answers2

0

Add an environment variable called NODE_PATH and set it to %USERPROFILE%\Application Data\npm\node_modules (Windows XP), %AppData%\npm\node_modules (Windows 7/8/10), or wherever npm ends up installing the modules on your Windows flavor. To be done with it once and for all, add this as a System variable in the Advanced tab of the System Properties dialog (run control.exe sysdm.cpl,System,3).

Quick solution in Windows 7+ is to just run:

rem for future
setx NODE_PATH %AppData%\npm\node_modules
rem for current session
set NODE_PATH=%AppData%\npm\node_modules

It's worth to mention that NODE_PATH is only used when importing modules in Node apps. When you want to use globally installed modules' binaries in your CLI you need to add it also to your PATH, but without node_modules part (for example %AppData%\npm in Windows 7/8/10).

Original answer

0

Please make sure that the environment variable has been configured like below,

C:\Users\user\AppData\Roaming\npm\node_modules\angular-cli\bin;

Close cmd and reopen once.

Santhosh V
  • 380
  • 1
  • 11