I have the latest versions of node and npm installed:
$ node -v
v7.10.0
$ npm -v
4.2.0
And gulp:
$ sudo npm install gulp -g
But when I try to check its version:
$ gulp -v
/usr/local/lib/node_modules/gulp/bin/gulp.js:14
var argv = require('minimist')(process.argv.slice(2));
^
TypeError: require(...) is not a function
at Object.<anonymous> (/usr/local/lib/node_modules/gulp/bin/gulp.js:14:31)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.runMain (module.js:605:10)
at run (bootstrap_node.js:427:7)
at startup (bootstrap_node.js:151:9)
at bootstrap_node.js:542:3
Why? Any ideas?
via teelou
No comments:
Post a Comment