Tausif Anwar
Tausif Anwar

Reputation: 39

Angular4 npm start issues

I am trying to run command npm start, before that I installed nodejs, npm install. Following issues has been attached in image file. enter image description here

Please have a greatful help.

Upvotes: 3

Views: 39

Answers (2)

René Höhle
René Höhle

Reputation: 27285

You don't have a packages.json file. When you start a project run npm init to create one.

For Angular there is a small program "Angular CLI" to create complete projects with all dependencies.

https://cli.angular.io/

Upvotes: 1

Yakov Fain
Yakov Fain

Reputation: 12378

The error message you see tells that you run npm install from a directory that doesn't have the file package.json.

Also, you have a very old version of Node. Angular requires at least the version 6.9. Install the current version of Node from https://nodejs.org/en/

Upvotes: 1

Related Questions