npx
1: npx 是什么
命令行工具
2. npx 优点
1.避免全局安装 2.最新版本 3.执行任意 npm 包
3. npx 和 npm 区别
npx 侧重于执行命令的,执行某个模块命令。虽然会自动安装模块,但是重在执行某个命令
npm 侧重于安装或者卸载某个模块的。重在安装,并不具备执行某个模块的功能。
命令行工具
1.避免全局安装 2.最新版本 3.执行任意 npm 包
npx 侧重于执行命令的,执行某个模块命令。虽然会自动安装模块,但是重在执行某个命令
npm 侧重于安装或者卸载某个模块的。重在安装,并不具备执行某个模块的功能。