win10上安装socket.io
2017-08-21 12:23
411 查看
问题:win10上安装socket.io
D:\learing program\后端练习\node.js\messaging>npm install socket.io --savenpm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "socket.io" "--save"
npm ERR! node v6.9.5
npm ERR! npm v3.10.10
npm ERR! file D:\learing program\后端练习\node.js\messaging\package.json
npm ERR! code EJSONPARSE
npm ERR! Failed to parse json
npm ERR! No data, empty input at 1:1
npm ERR!
npm ERR! ^
npm ERR! File: D:\learing program\后端练习\node.js\messaging\package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR!
npm ERR! This is not a bug in npm.
npm ERR! Tell the package author to fix their package.json file. JSON.parse
npm ERR! Please include the following file with any support request:
npm ERR! D:\learing program\后端练习\node.js\messaging\npm-debug.log
安装命令为npm官网命令npm install socket.io --save
解决方案:
将安装目录改为node.js的安装目录,在node.js目录下安装
相关文章推荐
- nodejs 安装mysql、socket.io 插件
- socket.io的安装和使用
- Node.js+NPM+Express+Socket.io安装手记
- CentOS安装Node.js、Express和Socket.io
- centOS下通过NPM安装和配置node.js+socket.io+connect在线聊天的详细教程
- Ubuntu下配置Nodejs,并安装express和socket.io
- SocketIO --- 安装篇
- [netty] netty socket.io的安装测试
- Ubuntu下配置Nodejs,并安装express和socket.io
- node.js安装socket.io总是报错“ws@0.5.0 install"
- windows下安装nodejs、 express +、socket.io和redis
- NodeJS:cannot find module 'socket.io' | nmp全局安装 modules 后在应用中 require 不到的解决方案
- socket-io-server安装及运行的相关问题记录
- node.js+socket.io安装
- Ubuntu下配置Nodejs,并安装express和socket.io
- nodejs 安装 socket.io
- node 安装socket.io
- Nodejs npm安装socket.io报错解决办法
- Java实现app接口和Socket消息传递(1)Win10安装Tomcat9
- socket.io安装部署