$ gulp watch 运行出错解决方法

$ gulp watch 运行出错解决方法

 

$ gulp watch
						

 

 

如果你出现了如下报错信息:

gulp-notify:
									[Laravel Elixir] Browserify Failed!: Couldn't find preset "es2015" relative to directory "/home/vagrant/Code/sample/resources/assets/js"
																				while parsing file:
																								/home/vagrant/Code/sample/resources/assets/js/app.js

可通过安装 Babel 的相关模块来进行修复。修复完成之后你需要重新运行 gulp watch 命令。

$ yarn add babel-preset-es2015 --save

$ yarn add babel-preset-react --save

退出并重新运行 Gulp

posted @ 2017-06-02 14:54  刘俊涛的博客  阅读(1307)  评论(0编辑  收藏  举报