我和国家预防机制也有同样的问题。在我的电脑上试着避免目录问题,并在cloud9上得到同样的问题。希望它在一个虚拟机上,我几乎没有办法搞砸它,我已经尝试了私密:真实的,假的,完全没有它。以及sockt.io的“最新”与快递相同。任何洞察力都会很好
{ "name": "chit",
"version": "0.0.1",
"description": "chat practice",
"private": "false",
"dependencies":{ "socket.io":"1.4.8",
"express":"4.14.0" }
"author": "Charles",
"license": "ISC" 非常感谢
见错误
ERR! install Couldn't read dependencies
npm ERR! Linux 4.2.0-c9
npm ERR! argv "/home/ubuntu/.nvm/versions/node/v4.4.5/bin/node" "/home/ubuntu/.nvm/versions/node/v4.4.5/bin/npm" "install"
npm ERR! node v4.4.5
npm ERR! npm v2.15.5
npm ERR! file /home/ubuntu/workspace/chat/package.json
npm ERR! code EJSONPARSE
npm ERR! Failed to parse json
npm ERR! Unexpected token 'a' at 10:4
npm ERR! "author": "Charles",
npm ERR! ^
npm ERR! File: /home/ubuntu/workspace/chat/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! /home/ubuntu/workspace/chat/npm-debug.log发布于 2016-07-14 04:45:42
你漏了一个冒号:
{“名称”:"chit",“版本”:"0.0.1",“描述”:“聊天实践”,“私有”:“假”,“依赖”:{ "socket.io":"1.4.8",“表示”:“4.14.0”}/<--缺少冒号“作者”:“查尔斯”,“许可”:"ISC“
它应该是:
{
"name": "chit",
"version": "0.0.1",
"description": "chat practice",
"private": "false",
"dependencies": {
"socket.io": "1.4.8",
"express": "4.14.0"
},
"author": "Charles",
"license": "ISC"
}https://stackoverflow.com/questions/38365501
复制相似问题