2220 verbose stack SyntaxError: Unexpected end of JSON input while parsing near '...PTiAdsxAq1UwLf0RRhbe2'
2220 verbose stack at JSON.parse (<anonymous>)
2220 verbose stack at parseJson (C:\Program Files\nodejs\node_modules\npm\node_modules\json-parse-better-errors\index.js:7:17)
2220 verbose stack at consumeBody.call.then.buffer (C:\Program Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\body.js:96:50)
2220 verbose stack at process._tickCallback (internal/process/next_tick.js:68:7)
2221 verbose cwd C:\Angular Course\my-first-app
2222 verbose Windows_NT 10.0.17134
2223 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program
Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--quiet"
2224 verbose node v10.15.3
2225 verbose npm v6.4.1
2226 error Unexpected end of JSON input while parsing near '...PTiAdsxAq1UwLf0RRhbe2'
2227 verbose exit [ 1, true ]
答案 0 :(得分:0)
尝试以下
npm缓存清理--force
并将您的角度升级到最新版本
npm install -g @ angular / cli @ latest