javascript – npm WARN enoent ENOENT: no such file or directory, open C:UsersNuwanstpackage.json

javascript – npm WARN enoent ENOENT: no such file or directory, open C:UsersNuwanstpackage.json

If you already have package-lock.json file just delete it and try again.

Have you created a package.json file? Maybe run this command first again.

C:UsersNuwanstDocumentsNodeJS3.chat>npm init

It creates a package.json file in your folder.

Then run,

C:UsersNuwanstDocumentsNodeJS3.chat>npm install socket.io --save

The --save ensures your module is saved as a dependency in your package.json file.

Let me know if this works.

javascript – npm WARN enoent ENOENT: no such file or directory, open C:UsersNuwanstpackage.json

You need to make sure if package.json file exist in app folder. i run into same problem differently but solution would be same

Run this command where package.json file exist. even i experience similar problem then i change the folder and got resolve it. for more explanation i run c:selfPractice> npm start whereas my package.json resides in c:selfPracticefrontend> then i change the folder and run c:selfPracticefrontend> npm start and it got run

Leave a Reply

Your email address will not be published.