create-react-app my-pocket出现的问题

来源:2-2 文件代码结构

bluewind1230

2020-12-02

出现的问题如下:
info There appears to be trouble with your network connection. Retrying…
error An unexpected error occurred: “https://registry.npm.taobao.org/@typescript-eslint/eslint-plugin/download/@typescript-eslint/eslint-plugin-4.9.0.tgz: unexpected end of file”.
info If you think this is a bug, please open a bug report with the information provided in “/Users/mac/WebstormProjects/mypocket/yarn-error.log”.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Aborting installation.
yarnpkg add --exact react react-dom react-scripts cra-template --cwd /Users/mac/WebstormProjects/mypocket has failed.

Deleting generated file… package.json
Done.
这该怎么解决??

写回答

1回答

张轩

2020-12-03

同学 请使用 npx create-react-app my-pocket 命令,文档在此 https://zh-hans.reactjs.org/docs/create-a-new-react-app.html

0
0

React16组件化+测试+全流程 实战在线账本项目

轻松上手,从设计图到上线,精通组件化思维和组件测试

713 学习 · 177 问题

查看课程