前端项目配置下载源npm, yarn,pnpm

前端项目配置下载源

  1. npm:
    • npm config set registry registry=https://registry.npmmirror.com -g
    • 验证: npm config get registry
  2. yarn:
    • yarn config set registry registry=https://registry.npmmirror.com -g
    • yarn config get registry
    • yarn找不到, 需要管理员在命令行: set-executionpolicy remotesigned
  3. pnpm:
    • pnpm config set registry https://registry.npmmirror.com/
    • pnpm config get registry

你可能感兴趣的:(软件工程基建,前端)