Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
2075 votes
7 answers
310k views

NPM vs. Bower vs. Browserify vs. Gulp vs. Grunt vs. Webpack [closed]

I'm trying to summarize my knowledge about the most popular JavaScript package managers, bundlers, and task runners. Please correct me if I'm wrong: npm & bower are package managers. They just ...
VB_'s user avatar
  • 45.4k
433 votes
5 answers
540k views

Node update a specific package

I want to update my Browser-sync without updating all my node packages. How can I achieve this? My current version of Browser-sync does not have the Browser-sync GUI :( ├─┬ [email protected] │ ├── ...
Samuel's user avatar
  • 5,859
277 votes
9 answers
317k views

After installation of Gulp: “no command 'gulp' found”

After installing gulp.js via npm, I receive a no command 'gulp' found error when running the gulp command from the same directory it was installed into. When looking under the node_modules/.bin/ ...
AndrewMcLagan's user avatar
179 votes
12 answers
329k views

Can't get Gulp to run: cannot find module 'gulp-util'

On Windows 7, I've installed gulp as explained here: http://markgoodyear.com/2014/01/getting-started-with-gulp/: npm install gulp -g In my app folder: npm install gulp --save-dev I create a gulpfile....
Nicolas Le Thierry d'Ennequin's user avatar
175 votes
22 answers
312k views

Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (88)

I have tried to install gulp-sass latest version with npm i gulp-sass --save-dev in the begining I got a lot of errors but later solved them. But whenever I try to run gulp I got this error: Error: ...
DINA TAKLIT's user avatar
  • 8,000
159 votes
10 answers
157k views

How to use npm with ASP.NET Core

I'm using npm to manage the jQuery, Bootstrap, Font Awesome and similar client libraries I need for my ASP.NET Core application. The approach that worked for me started by adding a package.json file ...
Carlos Figueroa's user avatar
100 votes
12 answers
131k views

Gulp command not found after install

I installed gulp(globally) and it looks like it worked because it ran this code: ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├...
iluvpinkerton's user avatar
95 votes
8 answers
69k views

UglifyJS throws unexpected token: keyword (const) with node_modules

A small project I started make use a node module (installed via npm) that declares const variables. Running and testing this project is well, but browserify fails when UglifyJS is executed. ...
Yanick Rochon's user avatar
94 votes
7 answers
140k views

Local gulp not found (Try running: npm install gulp)

I created a module (webapp-module-storage) which has the following definitions: package.json { "dependencies": { ... }, "devDependencies": { "gulp": "^3.9.1", ... }, "name": "...
Benny Code's user avatar
  • 53.8k
82 votes
22 answers
377k views

How to solve npm install error “npm ERR! code 1”

I'm trying to install Gulp.js and when I write npm install I get this issue: npm ERR! code 1 npm ERR! path D:\www\wegrow\node_modules\node-sass npm ERR! command failed npm ERR! command C:\Windows\...
Wojciech Bałucki's user avatar
81 votes
4 answers
33k views

Gulp-autoprefixer throwing ReferenceError: Promise is not defined

I try to make a gulp compile my sass then autoprefixit with gulp-autoprefixer but i'm getting an error. var gulp = require('gulp'), sass = require('gulp-sass'), autoprefixer = require('gulp-...
Matei's user avatar
  • 1,783
80 votes
18 answers
152k views

Error: Cannot find module 'gulp-sass'

When I compile with gulp, I got an error like below. How can I fix it? module.js:339 throw err; ^ Error: Cannot find module 'gulp-sass' at Function.Module._resolveFilename (module.js:337:15) ...
Htet Win's user avatar
  • 801
77 votes
5 answers
121k views

npm install multiple package names

What does it do when I run this command: npm install --save-dev package1 package2 It is definitely not installing multiple packages, but it looks to be essential. (For example https://www....
Lukáš Řádek's user avatar
61 votes
6 answers
47k views

Gulp error: gulp.hasTask is not a function

I'm getting the following when I run "gulp". Looks like I have a mixed of CLI and Local version, not really sure how to solve this problem. cabox@box-codeanywhere:~/workspace/apps/web-ui$ gulp -v [...
user1187968's user avatar
  • 7,724
52 votes
11 answers
70k views

How do I install gulp 4

I've been using gulp-watch. The current version of gulp-watch relies on the call gulp.parrallel. This call is only available from gulp 4. However gulp 4 is not available via the npm repo. npm info ...
dave dave's user avatar
  • 957
48 votes
3 answers
19k views

gulp-newer vs gulp-changed

What're the differences between them? gulp-newer: gulp.src(imgSrc) .pipe(newer(imgDest)) .pipe(imagemin()) .pipe(gulp.dest(imgDest)); gulp-changed: gulp.src(SRC) .pipe(changed(DEST)) ...
Frank Fang's user avatar
  • 2,162
46 votes
2 answers
22k views

yarn upgrade to fix yarn audit errors

So, as of now, it appears that there is no yarn audit --fix, so I am trying to figure out how to go about fixing my yarn audit errors. I have tried a yarn upgrade which has fixed some of the errors (...
Ken Bigler's user avatar
37 votes
6 answers
54k views

gulp-sass 5 does not have a default Sass compiler; please set one yourself

Error in plugin "gulp-sass" Message: gulp-sass 5 does not have a default Sass compiler; please set one yourself. Both the sass and node-sass packages are permitted. For example, in your ...
Zia Ansari's user avatar
36 votes
8 answers
36k views

cannot read property 'apply' of undefined gulp

I am trying to use the ng-factory generator to scaffold a new project to build an angularjs component. After the project has been created with the yo ng-factory command, I tried to run it using the ...
atul kale's user avatar
  • 361
36 votes
8 answers
56k views

events.js: 141 throw er; // Unhandled 'error' event

I'm trying to run node 4.2.2 on a Mac OS and i'm not understanding why every time i get this error message: events.js:141 throw er; // Unhandled 'error' event ^ Error: spawn /Users/user/...
Torun Ünver's user avatar
36 votes
2 answers
54k views

Automatic run gulp tasks via npm

I usually run gulp via npm, e.g. in my package.json "scripts": { "test": "gulp test", "minify": "gulp minify" } Then I can run command such as npm run minify Which is okay, but every time ...
Howard's user avatar
  • 19.6k
35 votes
3 answers
17k views

how to output multiple bundles with browserify and gulp

I have browserify bundling up files and it's working great. But what if I need to generate multiple bundles? I would like to end up with dist/appBundle.js and dist/publicBundle.js gulp.task("js", ...
Brian FitzGerald's user avatar
32 votes
6 answers
61k views

Typescript build getting errors from node_modules folder

I am running a typescript build and getting errors in node_modules. Why isn't it ignoring this folder? I have it in the exclude section of my tsconfig.json. The really strange thing is that I have ...
Ryan Langton's user avatar
  • 6,334
31 votes
1 answer
36k views

What does npm mean by 'Skipping failed optional dependency'?

Latest version of node and npm causing problems in running karma. When I try to install karma-cli npm i -g karma karma-cli I get following warning: npm WARN optional Skipping failed optional ...
Mithun Shreevatsa's user avatar
29 votes
3 answers
18k views

gulp-notify: [Error in notifier] Error in plugin 'gulp-notify' not found: notify-send

I'm trying to setup Gulp in my install of Laravel 5.1. I've ran then command npm install as specified in the Laravel documentation and that's worked fine. However, when I now run the command gulp I ...
ajtrichards's user avatar
  • 30.4k
29 votes
3 answers
44k views

Gulp build does not install dependencies automatically?

I use gulp to build my javascript application. I have some dependencies declared in the package.json file, for example: "dependencies": { "flux": "^2.0.1", "keymirror": "~0.1.0", "object-assign"...
Gelin Luo's user avatar
  • 14.3k
27 votes
10 answers
110k views

npm install is missing modules

Before I can run gulp in my project I need to run npm install. This works except on my computer, because I get the following error: Error: Cannot find module 'socket.io' at Function.Module....
Jeanluca Scaljeri's user avatar
26 votes
3 answers
10k views

Run npm install only when needed and/or partially

We call Gulp from our csproj file as we're using Visual Studio 2013 for this project: <Target Name="AfterBuild"> <Exec Command="gulp" /> </Target> However, since we're still ...
Jeroen's user avatar
  • 62.7k
24 votes
5 answers
31k views

gulp: Automatically add version number to request for preventing browser cache

I deploy my project by building source files with gulp right on the server. To prevent caching issues, the best practice could be adding a unique number to request url, see: Preventing browser caching ...
Dan's user avatar
  • 57.2k
23 votes
5 answers
14k views

-bash: gulp: command not found in Mac

I try install gulp in mac like this : Is-iMac:~ itop$ npm root /Users/itop/node_modules Is-iMac:~ itop$ npm config set prefix /usr/local Is-iMac:~ itop$ npm root -g /usr/local/lib/node_modules Is-...
ಠ_ಠ's user avatar
  • 1,235
22 votes
5 answers
24k views

Task "default" is not in your gulpfile

I run gulp in my console I got this error: Task 'default' is not in your gulpfile My gulpfile looks just fine: var gulp = require('gulp'), LiveServer = require('gulp-live-server'), ...
Jessie Emerson's user avatar
20 votes
6 answers
21k views

Using gulp without global gulp //edit: and without linking to the bin js file

I have a gulpfile.js that runs through perfectly when typing gulp into the commandline. All the gulp bash command really does is calling the specified js file in package.json >> bin >> ...
philkunz's user avatar
  • 441
20 votes
4 answers
18k views

How do you run gulp if gulp is installed(node_modules) in different folder than gulpfile.js

I have gulpfile.js in one directory and node_modules in another. When I run gulp, i get the error - 'Local gulp not found in '..(the directory).. Try running: npm install gulp' The thing is - I ...
sidb's user avatar
  • 211
20 votes
2 answers
15k views

Browserify Require All Files in Directory

I'm new to Browserify (and Javascript build systems in general) and have reached a point where I am thoroughly confused. I have Gulp setup to do my builds, which has always worked fine, and lately I'...
Jeremy Harris's user avatar
19 votes
4 answers
56k views

Error: Cannot find module 'browser-sync'

When am trying to start gulp serve Its raise an error module.js:338 throw err; ^ Error: Cannot find module 'browser-sync' at Function.Module._resolveFilename (module.js:336:...
Sajjad Murtaza's user avatar
19 votes
3 answers
27k views

How to merge multiple (npm) package.json files into one with Gulp?

Lets assume I have a mainFolder and 3 subfolders (subFolderA, subfolderB, subfolderC). And these subfolders all contain a package.json with dependencies and devDependencies. (mainFolder/subFolderA/...
Murat Ozgul's user avatar
  • 11.6k
17 votes
1 answer
11k views

How to install all required modules from gulpfile.js

Is it possible install all required modules from gulpfile.js with command line?
Vladyslav Havrylenko's user avatar
17 votes
1 answer
17k views

Gulp error: events.js:72

I've been trying out (or trying to get working) a jekyll style guide from: https://github.com/davidhund/jekyll-styleguide#user-content-requirements My gulpfile is: var gulp = require('gulp'); var ...
Gerico's user avatar
  • 5,149
16 votes
3 answers
14k views

How to install multiple gulp packages at once using node?

I just switched to gulp task runner to automate my workflow, but there is this problem whenever i want to start a new project i have to install all packages required in gulpfile.js using the following ...
Daniel Chikaka's user avatar
16 votes
1 answer
14k views

npm WARN optional dep failed, continuing [email protected]

I am install browserSync npm install browser-sync but have a problem npm WARN optional dep failed, continuing [email protected] What is this error and how it can be solved ? gulp does not start P.S:...
user3178479's user avatar
16 votes
1 answer
11k views

Updating Gulp plugins

When starting a project using a Yeoman generator, say, generator-gulp-webapp, you get a package.json file with all the dependencies. Is it recommended to update all or any of these dependencies (ex: ...
zok's user avatar
  • 7,464
16 votes
1 answer
16k views

Using Gulp Zip to zip all the files in a folder

I am using gulp-zip to zip up my source files. So I have a main folder called FIFA which has other sub folders which might have more sub folders and files. In additon the FIFA folder also has files ...
user avatar
15 votes
1 answer
6k views

Visual Studio 2015 ASP.NET 5, Gulp task not copying files from node_modules

I am attempting to alter a task runner script that I borrowed from here, however; after the task runner successfully executes in Visual Studio 2015's Task Runner Explorer -- the files are not actually ...
David Pine's user avatar
  • 24.3k
14 votes
2 answers
11k views

Import CSS from node_modules using Gulp-SASS

I want to import a CSS-file from my node_modules using SASS. @import 'normalize.css/normalize'; This is how my gulpfile.js handles my SASS: const gulp = require('gulp'), sass = require('gulp-...
confusius's user avatar
  • 591
14 votes
1 answer
5k views

What exactly do I do about gulp 4.0.2 dependency vulnerabilities?

In my package.json I have listed gulp as one of my dependencies. { "name": "myproject", "devDependencies": { "gulp": "^4.0.2" /...
birgersp's user avatar
  • 4,656
13 votes
2 answers
4k views

PhpStorm Npm and Gulp tool windows missing in some projects

For all projects I have gulpfile.js in the project's root (also bower.json, package.json and node_modules). In PhpStorm Settings > Languages & Frameworks > Node.js and NPM I can see all the (local ...
MrCroft's user avatar
  • 3,069
13 votes
3 answers
11k views

node app fails to run on mojave: ReferenceError: internalBinding is not defined

I've tried to unsuccessfully run a node app, which runs fine on both High Sierra and Windows 10, but fails on Mojave 10.14.1. This is the error shown when running the gulp build_dev task: [23:44:42] ...
revy's user avatar
  • 4,557
13 votes
2 answers
50k views

How to fix "Task is not in your gulpfile" error when using npm link?

We have a bunch of applications sharing common gulp logic, so we made a gulp plugin that contains a bunch of custom tasks. However we'd like to avoid installing gulp+our plugin (along with half the ...
zedix's user avatar
  • 1,221
13 votes
5 answers
18k views

Access node_modules from another folder

Recently started working with Gulp and I can't figure out is it really necessary to have a copy of node_modules directly in folder with current project? E.g. I have this structure: mysite └─builder &...
Julia's user avatar
  • 1,321
12 votes
3 answers
13k views

permission denied error with npm install

Just made a fresh reinstall of my ubuntu and installed necessarily things such as nodejs npm. If I cloned project and tried sudo npm install I got this error. Had someone same problem? using node: 8....
johnny04501's user avatar

1
2 3 4 5
24