我用
http://jsonlint.com/来检查这个package.json文件的语法
{ "name": "hello-world","description": "hello world test app","version": "0.0.1","private": true,"dependencies": { "express": “4.6.1" } }
它返回错误
Parse error on line 7: ... "express": “4.6.1" }} ----------------------^ Expecting 'STRING','NUMBER','NULL','TRUE','FALSE','{','['
不知道这是什么问题.终端抛出使用npm安装的错误
"Failed to parse package.json data. npm ERR! package.json must be actual JSON,not just JavaScript."
解决方法
只需键入npm缓存清除提示符,所有的事情必须重新工作.