小编Jas*_*rre的帖子

错误的ERR!401 Unauthorized:@ babel/core @ 7.1.0使用创建新的反应应用程序时

我正在尝试使用创建一个新的反应应用程序

create-react-app my-app
Run Code Online (Sandbox Code Playgroud)

但是我收到了这个错误.我之前使用过create-react-app,这是我第一次遇到这个

Creating a new React app in C:\Users\jason\Desktop\my-app.

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

npm ERR! code E401
npm ERR! 401 Unauthorized: @babel/core@7.1.0

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\jason\AppData\Roaming\npm-cache\_logs\2018-11-28T04_38_50_180Z-debug.log

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

Deleting generated file... package.json
Deleting my-app/ from C:\Users\jason\Desktop
Done.
Run Code Online (Sandbox Code Playgroud)

这是我得到的错误日志

0 info it worked if it ends with …
Run Code Online (Sandbox Code Playgroud)

npm reactjs create-react-app

10
推荐指数
1
解决办法
3458
查看次数

标签 统计

create-react-app ×1

npm ×1

reactjs ×1