C:\Users\Administrator\Desktop\bus_zhang\angular-quickstart2>npm start
> angular-quickstart@1.0.1 start C:\Users\Administrator\Desktop\bus_zhang\angula
r-quickstart2
> tsc && concurrently "npm run tsc:w" "npm run lite"
error TS5014: Failed to parse file 'C:/Users/Administrator/Desktop/bus_zhang/ang
ular-quickstart2/tsconfig.json': Unexpected token } in JSON at position 304.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "start"
npm ERR! node v6.10.3
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! angular-quickstart@1.0.1 start: `tsc && concurrently "npm run tsc:w" "n
pm run lite" `
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular-quickstart@1.0.1 start script 'tsc && concurrentl
y "npm run tsc:w" "npm run lite" '.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular-quickstart pa
ckage,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! tsc && concurrently "npm run tsc:w" "npm run lite"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs angular-quickstart
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls angular-quickstart
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Administrator\Desktop\bus_zhang\angular-quickstart2\npm-de
bug.log
C:\Users\Administrator\Desktop\bus_zhang\angular-quickstart2>
解决办法:
tsconfig.json
{ "compilerOptions": { "target": "es5", "module": "commonjs", "moduleResolution": "node", "sourceMap": true, "emitDecoratorMetadata": true, "experimentalDecorators": true, "removeComments": false, "noImplicitAny": false, "noStrictGenericChecks": true } }