找不到gulpfile [英] No gulpfile found
问题描述
我是新来的laravel.我正在尝试命令nmp install.这没用.然后,如他们的官方文档所示,我尝试了
npm install --global gulp-cli
但是我遇到了拒绝访问错误. 所以我给了
sudo npm install --global gulp-cli
似乎给了我一些正确的结果.然后我给了
npm install --no-bin-links
但是它说,
"npm WARN vagrant@1.0.0 No description npm WARN vagrant@1.0.0 No repository field."
我尝试过
npm install -d
尽管结果以"ok"结尾(运行命令后,第一行说如果以ok结尾,则行得通"),它仍然包含
""npm WARN vagrant@1.0.0 No description npm WARN vagrant@1.0.0 No repository field."
当我发出命令时
gulp
答案是没有找到gulpfile.在我的项目中有一个gulpfile.js文件(我不确定它在说哪个gulpfile:\)
该怎么办?我的节点版本是V5.12.0
在我的情况下,为了解决错误,未找到gulpfile"我错误地将配置文件称为gulp.js
而不是gulpfile.js
. /p>
因此,请确保您没有将文件拼写错误.
导致此错误的另一个可能原因是在错误的目录中运行gulp命令时. 确保gulpfile.js不在另一个文件夹中,而在项目文件夹中.
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
but it says that,
"npm WARN vagrant@1.0.0 No description npm WARN vagrant@1.0.0 No repository field."
I tried
npm install -d
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
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 :\ )
what to do? My node version is V5.12.0
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.
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屋!