现在位置 > 首页 > NPM命令

Npm 编译前端框架相关命令

被围观 238次

目前有 3 条留言 其中:访客:0 条, 博主:0 条

  1. Avatar photo
    管理员
    孟郎郎 : 2024年04月24日10:21:54  -9楼 @回复 回复
    pnpm相关命令:
    • 》》》查看版本:pnpm -v
    • 》》》升级最新版本:npm install -g pnpm
    • 》》》查看当前配置的镜像源:pnpm config get registry
    • 》》》查看所有配置信息:pnpm config list
    • 》》》设置镜像源配置:pnpm config set registry https://registry.npmmirror.com/
    • pnpm config set registry https://registry.npmjs.org/
  2. Avatar photo
    管理员
    孟郎郎 : 2024年05月10日16:44:42  -8楼 @回复 回复
    国内使用 npm 速度很慢,可以使用淘宝定制的 cnpm (gzip 压缩支持) 命令行工具代替默认的 npm。
    • $ npm install -g cnpm --registry=https://registry.npmmirror.com
    • $ npm config set registry https://registry.npmmirror.com
    • Avatar photo
      管理员
      孟郎郎 : 2024年05月10日16:48:38  地下1层 @回复 回复
      • $ npm config set registry https://registry.npm.taobao.org
      • -- 配置后可通过下面方式来验证是否成功
      • $ npm config get registry
      • -- 或 npm info express

给我留言

留言无头像?