我已将Keystone
与Yeoman Generator
一起安装。
yo keystone
命令运行无错误,但以下npm install
完成但有错误:
npm ERR! Unexpected end of JSON input while parsing near '...6.4","react":"^16.8.6'
调试日志中的数据
2317 verbose stack SyntaxError: Unexpected end of JSON input while parsing near '...6.4","react":"^16.8.6'
2317 verbose stack at JSON.parse (<anonymous>)
2317 verbose stack at parseJson (C:\Program Files\nodejs\node_modules\npm\node_modules\json-parse-better-errors\index.js:7:17)
2317 verbose stack at consumeBody.call.then.buffer (C:\Program Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\body.js:96:50)
2317 verbose stack at process._tickCallback (internal/process/next_tick.js:68:7)
我该如何解决?