build 写完插件publish之前要build一下啊
publish
install
pnpm install name —save
pnpm update name —save
node.js 的包管理工具
•
Local install (default): puts stuff in ./node_modules of the current package root.
•
本地安装(默认):把东西放在 当前package的根文件夹下的 ./node_modules
•
Global install (with g): puts stuff in /usr/local or wherever node is installed.
•
全局安装把东西放在 /usr/local 或者node js 的安装位置
•
Install it locally if you're going to require() it.
•
如果只是要 require() 就本地安装
•
Install it globally if you're going to run it on the command line.
•
如果想要在命令行运行就全局安装
•
If you need both, then install it in both places, or use npm link.
•
如果全都要就都安装一边或者使用 npm link 命令
pnpm
📢
比npm更快,node_models 文件夹更小的包管理器
npm install -g pnpm
pnpm install
pnpm prune
删除不必要的包
升级node版本
npm install n -g
n stable
评论区