npm+webpack搭建
摘要:Npm install vue-cli -g:安装vue-cli Vue init webpack test(项目名称) 安装css插件 npm install stylus stylus-loader --save 前端框架的搭建(vue+webpack)_choucha5981的博客-CSDN博
阅读全文
posted @
2021-04-28 14:10
博客园197
阅读(61)
推荐(0) 编辑
npm离线安装依赖
摘要:npm install [package_name --registry=指定地址] //指定地址安装 npm install ${path}/to/somedir //本地路径安装 npm install //默认仓库地址安装 npm install -g [package_name] [vers
阅读全文
posted @
2021-03-11 15:51
博客园197
阅读(1621)
推荐(0) 编辑
npm切换源
摘要:下载 nrm:npm install -g nrm 查看可切换的镜像源: nrm ls (*表示正在使用的镜像源 * npm https://registry.npmjs.org/ yarn https://registry.yarnpkg.com/ cnpm http://r.cnpmjs.org
阅读全文
posted @
2021-03-11 14:04
博客园197
阅读(117)
推荐(0) 编辑
npm 设置源
摘要:执行 npm 各种命令的时候,默认是去 npm 官方镜像源获取需要安装的具体软件信息 以下命令查看当前使用的镜像源 npm config get registry默认源地址在国外,从国内访问的速度肯定比较慢 如何修改镜像源阿里旗下维护着一个完整的 npm 镜像源 https://registry.n
阅读全文
posted @
2020-04-30 11:38
博客园197
阅读(1320)
推荐(0) 编辑