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命令
4.创建package.json文件
npm init --yes
https://blog.csdn.net/chenjing9393/article/details/53995041
5.npm更新
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命令
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命令解析
11.npm无法加载文件:因为在此系统上禁止运行脚本
12.npm install 报错,包依赖冲突的问题peer
--legacy-peer-deps
https://blog.csdn.net/qq_35303816/article/details/136445459