Reputation: 3871
I'm trying to run npm commands in Vs example project but the command is
"not recognized as an internal or external command".
I had done this in a "Developer Command Prompt for VS 2017" on my win 10 laptop. I am following How to build Angular App with ASP.net core in Vs 2017 example, but don't use Vs very often so I'm not familiar with it as much for this type of project.
Eventually I want to continue the example project for Single Page App but started with the above example because it wanted me to create an asp.net core angular project.
How do I get the npm command to run?
Instructions were:
Open a terminal/command prompt and navigate to your project’s directory
cd "D:\src\misc\SuperCoolApp\SuperCoolApp\"
npm install @angular/cli --global
I looked at reference links to troubleshoot npm, but it looks like I don't have node.js in ProgramFiles. If I installed Vs with everything possible, shouldn't I have node.js?
Upvotes: 0
Views: 1873
Reputation: 12439
No, nodejs
doesn't come with visual studio. You'll have to install it separately. You will have npm
also after installing nodejs.
If you want to create nodejs projects from visual studio, and want to have intellisense support for nodejs inside visual studio, you will have to install Node.js Tools for Visual Studio too.
Node.js Tools for Visual Studio are now part of Visual Studio since VS2017. Read here.
Upvotes: 2