info There appears to be trouble with your network connection
文章目录
使用 npx create-react-app 项目名 新建项目时,报错;
yarn add v1.22.4
info No lockfile found.
[1/4] 🔍 Resolving packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...解决途径:
第一步:更换淘宝镜像
yarn config set registry https://registry.npm.taobao.org第二步:按下面的操作
- 全局安装
nrm:npm install nrm -g; - 查看镜像源:
nrm ls; - 切换镜像源:
nrm use npm; - 安装需要的模块:
npm install <package-name>; - 如果需要安装全部依赖:
npm install;

评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论