Node.js使用 v6.11.0 x64 LTS 版本,下载地址:https://nodejs.org/dist/v6.11.0/node-v6.11.0-x64.msi。
对应的 npm 版本 3.10.10 。
下载了 msi 安装包,一路 next 即可。
服务器我们用node-static。
先用 npm init 创建一个package.json,然后添加依赖 node-static ,package.json 如下:
{
"name": "freeswitch",
"version": "1.0.0",
"description": "test freeswitch for webrtc",
"main": "server.js",
"dependencies": {
"node-static": "^0.7.9"
},
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\"