Node.js + Socket.io + Windows 7 / 8?

后端 未结 11 1813
迷失自我
迷失自我 2021-02-07 05:29

I\'ve been searching everywhere, but can\'t seem to find a solution. Is it possible to install Socket.io on Node.js on Windows 7?

If not, is there some sort of alternati

11条回答
  •  忘了有多久
    2021-02-07 06:01

    Create a file called package.json in your project directory with the following.

    {
         "name": "project name",
         "description": "project description,
         "version": "0.0.1",
         "dependencies": {
            "express": "2.4.6",
            "socket.io": "version"
         }
    }
    

    Then run the npm install

提交回复
热议问题