美文网首页
mac上给npm换成cnpm

mac上给npm换成cnpm

作者: Cici冬雪 | 来源:发表于2020-04-11 11:32 被阅读0次

NPM设置淘宝镜像

1.查询当前配置的镜像

npm get registry 

2.设置成淘宝镜像

npm config set registry http://registry.npm.taobao.org/

3.换成原来的

npm config set registry https://registry.npmjs.org/

Yarn 设置淘宝镜像

1.查询当前配置的镜像

yarn config get registry

2.设置成淘宝镜像

yarn config set registry http://registry.npm.taobao.org/

如果报错ERROR: Failed to download Chromium r722234! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.

npm config set puppeteer_download_host=https://npm.taobao.org/mirrors
npm i puppeteer

或者

npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm i puppeteer

相关文章

  • mac上给npm换成cnpm

    NPM设置淘宝镜像 1.查询当前配置的镜像 2.设置成淘宝镜像 3.换成原来的 Yarn 设置淘宝镜像 1.查询当...

  • 解决npm 的 shasum check failed for

    1.安装 npm install -g cnpm 下面的步骤把cnpm替换成npm也行,cnpm是npm的翻版,命...

  • 安装

    1.安装npm和cnpm 从官网安装npm 换成淘宝源 npm install -g cnpm --regist...

  • mac上给npm换源,换cnpm

    npm config set registry https://registry.npm.taobao.org /...

  • mac上给npm换源,换cnpm

    // 配置后可通过下面方式来验证是否成功 // 或 如何清除已设置的npm淘宝镜像? 或者 找到淘宝那两行,删除注...

  • npm换成cnpm的方法

    前言 安装cnpm和安装依赖可以通过下面语句实现 但是在yeoman(node的脚手架框架),安装依赖执行的是np...

  • 安装开发环境

    1.Mac上安装Node和NPM2.vue 3.webpack4.taobao cnpm ruby -e "$(c...

  • permission denied, mkdir '/usr/l

    Mac 电脑执行 cnpm i typescript -g 或者 npm i typescript -g提示如下信...

  • 包管理工具 — yarn

    1.cnpm存在的问题 之前在npm更换成淘宝镜像源以及cnpm文章中讲到过,cnpm安装一个模块,会出现2个文件...

  • 谷歌浏览器如何安装vue调试工具

    1.先将命令行中默认的npm安装切换成cnpm (原因:用npm安装太慢啦!!!) 步骤:打开命令行,将 npm...

网友评论

      本文标题:mac上给npm换成cnpm

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