
前端之npm
qq_597221342
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
npm换源指令
在实际开发中经常遇到npm 下载慢,打包失败,编译报错等的问题,不翻墙很难下载到需要的包,故需还源 淘宝npm镜像:https://npm.taobao.org/指令如下: npm config set registry https://registry.npm.taobao.org // 配置后可通过下面方式来验证是否成功 npm config get registry // 或npm原创 2017-04-26 10:24:16 · 650 阅读 · 0 评论 -
npm 常用指令
npm install 安装模块 npm uninstall 卸载模块 npm update 更新模块 npm outdated 检查模块是否已经过时 npm ls 查看安装的模块 npm init 在项目中引导创建一个package.json文件 npm help 查看某条命令的详细帮助 npm root 查看包的安装路径 npm config 管理npm的配置路径 npm ca转载 2017-04-26 10:12:32 · 534 阅读 · 0 评论