Abhijeet
Abhijeet

Reputation: 102

Angular js 4 with VS Code showing error on npm start command in powershell

*enter image description here*

I am new in angular js 4. I have already installed node and trying to code using VS Code. But when trying to start simple application with first command in powershell npm start it shows error attached in screen shot.

Upvotes: 3

Views: 292

Answers (3)

Lakshmi Prasanna
Lakshmi Prasanna

Reputation: 456

It seems, either you didn't install angular-cli or You dont have admin rights to serve the application . If that is the case open node command prompt (search with node , you will find node.js command prompt,select that ) and serve your application from that by going to application folder.

Upvotes: 1

Pardeep Jain
Pardeep Jain

Reputation: 86740

As per error showing you need to install angular cli first in order to use their commands. so try to install CLI first by running the command

npm cache clean -f
npm install -g @angular/cli

For more information please refer to official docs here

Upvotes: 1

Anuradha Gunasekara
Anuradha Gunasekara

Reputation: 6983

You need to install angular-cli globally in your machine.

npm install -g @angular/cli

Upvotes: 0

Related Questions