npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\Nuwanst\package.json'

前端 未结 15 876
隐瞒了意图╮
隐瞒了意图╮ 2020-12-12 23:19

I just want to install socket.io to my project which is located on 3.chat folder. But when I run following command it shows following Warnings.And its not created a node_mod

15条回答
  •  天命终不由人
    2020-12-13 00:04

    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:\selfPractice\frontend> then i change the folder and run c:\selfPractice\frontend> npm start and it got run

提交回复
热议问题