项目启动失败
发布于 11天前 作者 ztoney 155 次浏览 来自 问答

E:\myTestDemo\Demo>cnpm run dev

demo@1.0.0 dev E:\myTestDemo\Demo node build/dev-server.js

npm WARN invalid config loglevel="notice" module.js:590 throw err; ^

SyntaxError: E:\myTestDemo\Demo\mock\goods.json: Unexpected token } in JSON at p osition 296 at Object.parse (native) at Object.Module._extensions…json (module.js:587:27) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object.<anonymous> (E:\myTestDemo\Demo\build\dev-server.js:27:17) at Module._compile (module.js:570:32) at Object.Module._extensions…js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.runMain (module.js:604:10) at run (bootstrap_node.js:394:7) at startup (bootstrap_node.js:149:9) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! demo@1.0.0 dev: node build/dev-server.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the demo@1.0.0 dev script. npm ERR! This is probably not a problem with npm. There is likely additional log ging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2017-10-12T0 2_45_00_436Z-debug.log

E:\myTestDemo\Demo>

1 回复

E:\myTestDemo\Demo\mock\goods.json: Unexpected token } in JSON

json格式错了

回到顶部