且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

没有找到 gulpfile

更新时间:2022-04-23 23:29:35

在我的例子中,为了解决错误,'no gulpfile found' 我错误地将配置文件称为 gulp.js而不是 gulpfile.js.

In my case, in order to solve the error, 'no gulpfile found' I wrongly called the configuration file as gulp.js instead of gulpfile.js.

所以请确保您没有拼错文件.

So just make sure you didn't misspell the file.

您可能会收到此错误的另一个可能原因是您在错误的目录中运行 gulp 命令.确保 gulpfile.js 不在另一个文件夹中,而是在项目文件夹中.

Another possible reason why you might get this error is when you are running the gulp command in the wrong directory. Make sure the gulpfile.js is not inside another folder but within the project folder.