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 [email protected] No description npm WARN [email protected] 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 [email protected] No description npm WARN [email protected] 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
This error means that gulp doesn't find gulpfile.js to follow the instructions. To solve this error we need to add gulpfile.js to our directory root by running the command.
Create gulpfile.js and then add
var gulp = require('gulp');
gulp.task('default', function () {
console.log('Hello Gulp!')
});
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With