enter image description here I am not able build the angular project in visual studio using ng serve,but I am able to do it using node.js command prompt please give me solutions for this one
2 Answers
Install Angular cli globally using this command.
$ npm install -g @angular/cli
the -g switch installs angular cli(or any npm package globally on your system).
5 Comments
Suhas Nadarge
C:\Users\snadarge>$ npm install -g @angular/cli '$' is not recognized as an internal or external command, operable program or batch file. ->I tried but not working
Majid Khoshnasib
It seems you don’t have node and npm installed on your system. Follow instruction and install them first using below link: blog.teamtreehouse.com/install-node-js-npm-windows
Suhas Nadarge
I have already installed it, problem is I am not able to use it CMD, but I can use it in nodeCommand
Majid Khoshnasib
If you want to use the command in cmd you should add npm bin directory into your windows environment variables. I will put the link of how to do that
Majid Khoshnasib
node -v&npm -v