Error running gulp on Windows 10

被刻印的时光 ゝ 提交于 2019-12-11 00:23:49

问题


I'm running Windows 10 build 10576(latest) and I get an error when running gulp from my project root folder(or anywhere). Here's a screenshot of the error: http://puu.sh/l3mLf/522a4e6dbe.png Error message says "invalid character". (I've installed gulp globally) The very first line of gulp.js in the bin folder is the following:

#!/usr/bin/env node  

I didn't have this problem before and I'd really want to get this sorted out. Thanks.


回答1:


I have the same error when try running "node_modules\gulp\bin\gulp.js install".

I found the solution here at Testing out Protractor interactively

Just add "node" command in front of it will work. In my case "node node_modules\gulp\bin\gulp.js install"



来源:https://stackoverflow.com/questions/33443126/error-running-gulp-on-windows-10

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!