Why Do I have to run npm install everytime I create a new angular 2 project?

Viewed 12013

Everytime I make a new angular 2 project it says "node_modules appears empty, you may need to run `npm install"

4 Answers

Once you run the ng new my-project. Just give it some time to install the dependencies into the node_modules folder, which shows the below message.

Installing packages for tooling via npm

You will get the following message once it is done:

Installed packages for tooling via npm. Project 'my-project' successfully created.

Now try running the ng serve. It should work fine.

Related