Answer the question
In order to leave comments, you need to log in
How to install the local version of GULP the same as the global one?
In general, I'm trying to do a sass compilation using gulp. I already did it on a couple of servers, the gulpfile.js code is working. But on this server, running gulp-sass fails.
/usr/lib/nodejs/gulp/bin/gulp.js:132
gulpInst.start.apply(gulpInst, toRun);
^
TypeError: Cannot read property 'apply' of undefined
at /usr/lib/nodejs/gulp/bin/gulp.js:132:20
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
at Function.Module.runMain (module.js:695:11)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3ons..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
[20:40:35] CLI version 3.9.1
[20:40:35] Local version 4.0.2
npm ERR! Linux 4.15.0-72-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "[email protected]"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! No compatible version found: [email protected]
npm ERR! Valid install targets:
npm ERR! 4.0.2, 4.0.1, 4.0.0, 3.9.1, 3.9.0, 3.8.11, 3.8.10, 3.8.9, 3.8.8, 3.8.7, 3.8.6, 3.8.5, 3.8.4, 3.8.3, 3.8.2, 3.8.1, 3.8.0, 3.7.0, 3.6.2, 3.6.1, 3.6.0, 3.5.6, 3.5.5, 3.5.2, 3.5.1, 3.5.0, 3.4.0, 3.3.4, 3.3.2, 3.3.1, 3.3.0, 3.2.5, 3.2.4, 3.2.3, 3.2.2, 3.2.1, 3.2.0, 3.1.4, 3.1.3, 3.1.2, 3.1.1, 3.0.0, 2.7.0, 2.6.1, 2.6.0, 2.4.1, 2.4.0, 2.3.0, 2.2.0, 2.1.0, 2.0.1, 2.0.0, 1.2.1, 1.2.0, 1.1.0, 1.0.0, 0.2.0, 0.1.0, 0.0.9, 0.0.8, 0.0.7, 0.0.5, 0.0.4, 0.0.3, 0.0.2, 0.0.1
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /var/www/html/local/wp-content/themes/local/npm-debug.log
/usr/lib/nodejs/gulp/bin/gulp.js:132
gulpInst.start.apply(gulpInst, toRun);
^
TypeError: Cannot read property 'apply' of undefined
at /usr/lib/nodejs/gulp/bin/gulp.js:132:20
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
at Function.Module.runMain (module.js:695:11)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3
Answer the question
In order to leave comments, you need to log in
gulp doesn't have a next tag
npm dist-tag ls gulp
latest: 4.0.2
[email protected]
or by version Well, you need to install it globally with the
-g [email protected]
sudo npm i -g [email protected]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question