Local gulp not found (Try running: npm install gulp)
Try running npm link gulp in your application directory (to create a local link to the globally installed Gulp module).
Try running npm link gulp in your application directory (to create a local link to the globally installed Gulp module).
When you pass in an array of full paths, each file is processed independently. The globbing doesn’t know where the root of the path is (in fact, it guesses based on the first glob). Therefore, each file is rooted in the folder it contains, and the relative path is empty. However, there is an easy … Read more
Yes I got it use the gulp –tasks in command then it display the tasks list.
Or you can do like this: gulp.start(‘task1’, ‘task2’);
TL;DR Use path.join(__dirname, ‘..’, ‘test’, ‘karma.conf.js’). Prevent use of slashes. Long Answer As a lot of answers have pointed out, using path module is probably the best way. However, most of the solutions here have gone back to using slashes like: path.join(__dirname+’../test/karma.conf.js’) However, by doing this, you’re beating the purpose of using path. One uses … Read more
Turns out that npm was installed in the wrong directory so I had to change the “npm config prefix” by running this code: npm config set prefix /usr/local Then I reinstalled gulp globally (with the -g param) and it worked properly. This article is where I found the solution: http://webbb.be/blog/command-not-found-node-npm
You need to include the base option to src, which will preserve the file structure the way you want: var filesToMove = [ ‘./_locales/**/*.*’, ‘./icons/**/*.*’, ‘./src/page_action/**/*.*’, ‘./manifest.json’ ]; gulp.task(‘move’,[‘clean’], function(){ // the base option sets the relative root for the set of files, // preserving the folder structure gulp.src(filesToMove, { base: ‘./’ }) .pipe(gulp.dest(‘dist’)); }); … Read more
I had the same problem migrating from VS2013 recently. As Josh noted in his comment here Visual Studio 2015 ships with an older version of Node. In case you don’t want to get stuck with whatever version of Node is built into Visual Studio, you can tell it to use the version you have already … Read more
Take the spaces away return gulp.src(‘./images/*.{png,gif,jpg}’)
As you suspected, you are making this too complicated. The destination doesn’t need to be dynamic as the globbed path is used for the dest as well. Simply pipe to the same base directory you’re globbing the src from, in this case “sass”: gulp.src(“sass/**/*.scss”) .pipe(sass()) .pipe(gulp.dest(“sass”)); If your files do not have a common base … Read more