1.全局安装(官网不推荐)
2.指定目录运行,如:node_modules/.bin/webpack(找不到webpack命令是因为系统环境变量的原因)
node_modules/.bin/webpack(找不到webpack命令是因为系统环境变量的原因)
3.自定义shell命令:alias webpack="node_modules/.bin/webpack",之后再用webpack命令
alias webpack="node_modules/.bin/webpack",之后再用webpack命令