1.npm命令

1.npm更改淘宝镜像

npm config set registry http://www.npmjs.org
npm config set registry https://registry.npm.taobao.org/
https://www.jianshu.com/p/eef54b38b2a7

2.获取镜像来源

获取镜像来源:npm config get registry

3.npm命令

https://www.cnblogs.com/shiazhen/p/11942739.html

4.创建package.json文件

npm init --yes
https://blog.csdn.net/chenjing9393/article/details/53995041

5.npm更新

https://www.cnblogs.com/lxg0/p/8072890.html

6.npm发布、引入

https://www.jianshu.com/p/0faaff26a2c8
https://blog.csdn.net/xingchen678/article/details/102718614
npm run lib
https://blog.csdn.net/weixin_42572626/article/details/105635126

7.删除包

npm unpublish 包名 --force
24小时内
https://blog.csdn.net/I_recluse/article/details/106029246

8.浅析npm run serve命令

https://blog.csdn.net/qq_31772441/article/details/119941900

9.项目启动前的console.log颜色

 "dev": "node script/plugin-get-config.js && vue-cli-service serve", src平级

const chalk = require('chalk')
console.log(chalk.green('配置插件...'))

 "preinstall": "npx only-allow yarn", 安装前的设置

10.package.json中的scripts命令解析

https://zhuanlan.zhihu.com/p/542422698

11.npm无法加载文件:因为在此系统上禁止运行脚本

https://blog.csdn.net/m0_74824954/article/details/144255380

12.npm install 报错,包依赖冲突的问题peer

--legacy-peer-deps
https://blog.csdn.net/qq_35303816/article/details/136445459

13.unsupported

https://blog.csdn.net/m0_73442728/article/details/141640047

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容