📌  相关文章
📜  ENOENT,没有这样的文件或目录 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:40.238000             🧑  作者: Mango

代码示例2
Have you created a package.json file? Maybe run this command first again.

C:\Users\Nuwanst\Documents\NodeJS\3.chat>npm init

It creates a package.json file in your folder.

Then run,

C:\Users\Nuwanst\Documents\NodeJS\3.chat>npm install socket.io --save

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