3

*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.

3 Answers 3

1

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.

Sign up to request clarification or add additional context in comments.

2 Comments

You're right, I don't have admin rights. With your suggestion how to serve my application, I open node cmd prompt
open node command prompt. type cd <project folder path>. then do npm start
1

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

Comments

0

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

npm install -g @angular/cli

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.