fafa
fafa

Reputation: 9

i have a problem when i am trying to install the npm

I have a problem with npm. npm install and this is the error message I have got:

npm WARN enonent ENOENT: no such file or direcotry, open 'C:\Users\pc5\package.json

npm install error

I would be glad if you help me

Upvotes: 0

Views: 41

Answers (1)

Jan Köhler
Jan Köhler

Reputation: 6032

If there no package.json (as the error message states) then you probably just forgot to run npm init as @BvdL pointed already out.

See especially here: https://docs.npm.red/creating-a-package-json-file#creating-a-new-packagejson-file

Upvotes: 1

Related Questions