在Windows 10上运行gulp时出错 [英] Error running gulp on Windows 10
问题描述
我正在运行Windows 10 build 10576
(最新版本),并在从项目根文件夹(或任何位置)运行gulp时出现错误。以下是错误的截图: http://puu.sh/l3mLf/522a4e6dbe.png
错误信息显示无效字符
。
(我已经在全球安装了gulp)
bin文件夹中的第一行 gulp.js
如下:
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.
推荐答案
运行node_modules \gulp\bin\gulp.js install时出现同样的错误, 。
I have the same error when try running "node_modules\gulp\bin\gulp.js install".
只要在它前面添加node命令就可以工作。在我的情况下node node_modules \gulp\bin\gulp.js install
Just add "node" command in front of it will work. In my case "node node_modules\gulp\bin\gulp.js install"
这篇关于在Windows 10上运行gulp时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!