Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Not recognized as an internal or external command for node js modules

Tags:

npm

How to fix not recognized as an internal or external command after installing node modules.

For Example: npm install -g grunt-cli bower yo

After installation while typing yo or bower. Its throwing error "Moule_name" not recognized as an internal or external command

like image 368
Nithyanandan Sathiyanathan Avatar asked Nov 08 '22 22:11

Nithyanandan Sathiyanathan


1 Answers

Got it!!!

Issue is with environment variables. Mentioned node modules will not be accessed globally. So the app data path should be updated in system variables(Environment variable).

path: ;C:\Users\currentusername\AppData\Roaming\npm;

like image 96
Nithyanandan Sathiyanathan Avatar answered Nov 15 '22 11:11

Nithyanandan Sathiyanathan