webpack——webpack bash: webpack: command not found解决方法

现象

解决方法(通过Git Bash)

1、检查Nodejs是否安装成功、配置系统Path

2、全局安装webpack-cli:

npm install webpack-cli -g

3、全局安装webpack(分别执行以下2条命令):

npm install webpack -g

npm install webpack --save-dev -g

4、安装extract-text-webpack-plugin:

npm install --save extract-text-webpack-plugin

5、安装html-webpack-plugin:

 npm install html-webpack-plugin --save-dev
发布了719 篇原创文章 · 获赞 724 · 访问量 161万+

猜你喜欢

转载自blog.csdn.net/qq_36761831/article/details/105618518