相关传送门:

# window 安装包下载
https://yarnpkg.com/zh-Hans/docs/install#windows-stable

# yarn官方网站
https://yarnpkg.com/zh-Hans/docs/usage

# cyarn的github
https://github.com/xcatliu/cyarn

# 防止fq问题,先设置淘宝源
yarn config set registry https://registry.npm.taobao.org

 

demo:
yarn init -y

yarn add webpack react react-dom 

使用 yarn 作为 Npm 的代替方案

 

如果设置了淘宝源还是有安装问题,如卡在了第一个阶段上,那么切换 cyarn 来解决

[1/4] ????  Resolving packages...           
npm install -g cyarn --registry=https://registry.npm.taobao.org

cyarn add jquery

 

 

相关文章:

  • 2021-08-14
  • 2021-08-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-02
  • 2021-05-15
  • 2021-06-27
相关资源
相似解决方案