前端项目配置下载源

2023-12-18 17:47:31

前端项目配置下载源

  1. npm:
    • npm config set registry https://registry.npm.taobao.org -g
    • 验证: npm config get registry
  2. Yarn:
    • yarn config set registry https://registry.npm.taobao.org -g
    • yarn config get registry
    • yarn找不到, 需要管理员在命令行: set-executionpolicy remotesigned
  3. pnpm:
    • pnpm config set registry https://registry.npmmirror.com/
    • pnpm config get registry
  4. npx:
    • npx config set registry https://registry.npmmirror.com/
    • npx config get registry
  5. Bower:
    • bower config set registry https://registry.bower.io/
    • bower config get registry

文章来源:https://blog.csdn.net/zwq56693/article/details/135065053
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。