Reputation: 9
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
I would be glad if you help me
Upvotes: 0
Views: 41
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