01月182021
yarn 设置淘宝镜像
随笔技术知识阅读3594 标签: 前端运维
> 如果使用 yarn 速度很慢,你可以设置淘宝镜像 更多信息可以查阅:[http://npm.taobao.org/](http://npm.taobao.org/)。 ## 设置为淘宝镜像 ```sh $ yarn config set registry https://registry.npm.taobao.org -g $ yarn config set disturl https://npm.taobao.org/dist -g $ yarn config set electron_mirror https://npm.taobao.org/mirrors/electron/ -g $ yarn config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/ -g $ yarn config set phantomjs_cdnurl https://npm.taobao.org/mirrors/phantomjs/ -g $ yarn config set chromedriver_cdnurl https://cdn.npm.taobao.org/dist/chromedriver -g $ yarn config set operadriver_cdnurl https://cdn.npm.taobao.org/dist/operadriver -g $ yarn config set fse_binary_host_mirror https://npm.taobao.org/mirrors/fsevents -g ``` ## 查看 ```sh $ yarn config get registry $ yarn config get disturl ```

您可能感兴趣的

01月03
随笔技术知识阅读3325 标签: 运维
pm2 是一个带有负载均衡功能的Node应用的进程管理器.当你要把你的独立代码利用全部的服务器上的所有CPU,并保证进程永远都活着,0秒的重载, PM2是完美的。
03月11
随笔技术知识阅读2630 标签: 运维前端
国内使用 npm 速度很慢,你可以设置npm淘宝镜像或使用淘宝定制的 cnpm (gzip 压缩支持) 命令行工具
06月18
随笔技术知识阅读3058 标签: 前端运维
1、在命令前加上 sudo 2、sudo npm install --unsafe-perm=true 3、sudo npm install --unsafe-perm=true --allow-root
06月18
随笔技术知识阅读4704 标签: 运维前端
1、输入`which npm`可以得到 自己安装的npm位置 2、建立链接3、sudo ln [option]
06月01
随笔技术知识阅读8629 标签: 前端运维
国内使用 yarn 速度很慢,默认是去 npm/yarn 官方镜像源获取需要安装的具体软件信息,你可以重新修改镜像源。与npm命令比较
09月05
随笔技术知识阅读4831 标签: 前端运维
npm 默认会使用 C:\Users\Administrator\AppData\Roaming\npm-cache 目录,不仅不便于管理而且占用C盘空间
01月08
随笔技术知识阅读2493 标签: 前端后端运维
Git 是一个开源的分布式版本控制系统,用于敏捷高效地处理任何或小或大的项目。
幻灯片
朦胧
热情
清幽
青翠
花红
清新
黑夜