【发布时间】:2020-05-01 08:47:26
【问题描述】:
我是新手,我正在尝试创建一个新的应用程序,但无论我做什么,我都会遇到同样的错误。
:npm 错误!在 '...nt":"^7.1.0","babel-p' 附近解析时 JSON 输入意外结束
我觉得 babel 有点问题。
C:\Users\Augustus\Desktop>npx create-react-app myapp
Creating a new React app in C:\Users\Augustus\Desktop\myapp.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...
npm ERR! Unexpected end of JSON input while parsing near '...nt":"^7.1.0","babel-p'
npm ERR! A complete log of this run can be found in:
Aborting installation.
npm install --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.
Deleting generated file... package.json
Deleting myapp/ from C:\Users\Augustus\Desktop
Done.
【问题讨论】:
标签: javascript node.js reactjs