错误的ERR! package.json必须是实际的JSON,而不仅仅是JavaScript

时间:2016-03-05 03:16:04

标签: json node.js

新手节点问题。我无法让我的项目继续运行。

{       " name":" MyApp",       "版本":" 1.0.0",       "描述":"",       " main":" index.js",       "脚本":{         " test":" echo \"错误:没有指定测试\" &安培;&安培;退出1",         "开始":"节点app.js dev2"       },       "作者":"",       "许可证":" ISC",       "依赖":{         " async-await":" ^ 0.1.32",         " asyncawait":" ^ 1.0.3",         "身体解析器":" ^ 1.14.2",         " deasync":" ",         " ejs":" ^ 2.4.1",         "表达":" ^ 4.13.4",         " gulp":" ^ 3.9.0",         " gulp-concat":" ",         " gulp-filelist":" ^ 0.2.0",         " gulp-foreach":" ^ 0.1.0",         " gulp-remove-files":" 0.0.3",         " gulp-rename":" ",         " gulp-uglify":" ",         " gulp-watch":" ^ 4.3.5",         " mongoose":" ^ 4.4.1",         " mongoose-ttl":" 0.0.3",         " node-inspector":" ^ 0.12.5",         "承诺":" ^ 7.1.1",         " rootpath":" ^ 0.1.2"       },       " devDependencies":{         "浏览器同步":" ^ 2.11.1",         " gulp":" ^ 3.9.1"       }     }

1726 error Failed to parse json
1726 error Unexpected token '\u0000' at 1:1
1726 error 
1726 error ^
1727 error File: C:\Users\dir\AppData\Roaming\npm-cache\accepts\1.2.13\package\package.json
1728 error Failed to parse package.json data.
1728 error package.json must be actual JSON, not just JavaScript.

1 个答案:

答案 0 :(得分:1)

  

错误意外的令牌' \ u0000'在1:1

似乎你在第一行有一个空字符和一个字符

可以在pastebin或类似的地方提供package.json吗?