【发布时间】:2017-01-08 19:47:51
【问题描述】:
我对 Node.JS 非常陌生(我的背景是 Unity C#,如果这有助于您进行任何比较)。
我正在学习 Socket.IO 的聊天教程
http://socket.io/get-started/chat/
我不明白这是什么意思
First let’s create a package.json manifest file that describes our project.
I recommend you place it in a dedicated empty directory (I’ll call mine
chat-example).
{
"name": "socket-chat-example",
"version": "0.0.1",
"description": "my first socket.io app",
"dependencies": {}
}
Now, in order to easily populate the dependencies with the things we need, we’ll
npm install --save express@4.10.2
- 什么是“保存”?
- 这是否意味着在命令提示符下使用 安装了 Node.JS 的服务器?
【问题讨论】:
标签: javascript node.js express socket.io