没有找到 gulpfile [英] No gulpfile found

查看:77
本文介绍了没有找到 gulpfile的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 laravel 的新手.我正在尝试命令 nmp install.这是行不通的.然后如他们的官方文档所示,我尝试了

I am new in laravel. I am trying the command nmp install. it does not work. Then as shown in their official documentation, I tried

npm install --global gulp-cli

但我收到拒绝访问错误.所以我给了

but I was getting access denied error. So I gave

sudo npm install --global gulp-cli

这似乎给了我一些正确的结果.然后我给了

It seemed to give me some correct result. then I gave

npm install --no-bin-links

但它说,

"npm WARN vagrant@1.0.0 没有描述 npm WARN vagrant@1.0.0 没有存储库字段."我试过了

npm install -d

虽然结果以ok"结尾(运行命令后第一行说如果它以 ok 结尾就可以工作"),它仍然包含""npm WARN vagrant@1.0.0 没有描述 npm WARN vagrant@1.0.0 没有存储库字段."当我下达命令时

though the result ended with "ok" (after running the command the first line said "it worked if it ends with ok"), it still contains ""npm WARN vagrant@1.0.0 No description npm WARN vagrant@1.0.0 No repository field." And when I gave the command

gulp

答案是找不到 gulpfile.在我的项目中有一个 gulpfile.js 文件(我不确定它在说哪个 gulpfile :)

the answer was no gulpfile found. In my project there is a gulpfile.js file (I am not sure about which gulpfile it is talking : )

怎么办?我的节点版本是V5.12.0

what to do? My node version is V5.12.0

推荐答案

在我的例子中,为了解决错误,'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.

这篇关于没有找到 gulpfile的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆