小编Vai*_*mar的帖子

json 输入反应意外结束

我刚刚开始我的编码之旅,我刚刚开始使用 React,但是当我尝试创建一个新应用程序时,出现以下错误。它表示 JSON 输入意外结束。

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...

npm ERR! Unexpected end of JSON input while parsing near '...gin-precompile- 
charco'

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\vaibh\AppData\Roaming\npm-cache\_logs\2018-07- 
24T07_21_16_208Z-debug.log

Aborting installation.
npm install --save --save-exact --loglevel error react react-dom react- 
scripts has failed.

Deleting generated file... package.json
Deleting robofriends / from C:\Users\vaibh\Desktop
Done.
Run Code Online (Sandbox Code Playgroud)

javascript npm reactjs

2
推荐指数
1
解决办法
4503
查看次数

标签 统计

javascript ×1

npm ×1

reactjs ×1