美文网首页
npm、yarn和pnpm 设置淘宝镜像

npm、yarn和pnpm 设置淘宝镜像

作者: rushui | 来源:发表于2023-04-13 16:57 被阅读0次

    npm、yarn 和 pnpm 淘宝镜像

    // 设置
    npm config set registry https://registry.npmmirror.com/
    yarn config set registry https://registry.npmmirror.com/
    pnpm config set registry https://registry.npmmirror.com/
    // 查看
    npm config get registry
    yarn config get registry
    pnpm config get registry
    

    node-sass 淘宝镜像设置

    npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/
    yarn config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/
    pnpm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/
    

    相关文章

      网友评论

          本文标题:npm、yarn和pnpm 设置淘宝镜像

          本文链接:https://www.haomeiwen.com/subject/ppoaddtx.html