gulp
gulp copied to clipboard
Gulp fails to run on NodeJS 8, having NPM 5.0
if (!require.extensions.hasOwnProperty(ext)) {
^
TypeError: require.extensions.hasOwnProperty is not a function
I believe it is connected to https://github.com/aseemk/requireDir/issues/45
Windows 7, Gulp 3.9.1, NodeJS 8.0.0, NPM 5.0
I had the same issue. It's not connected to npm 5 (I was installing with npm 4.2).
This has nothing to do with gulp it was a bug with require-dir, which was fixed in 0.3.2 (released yesterday).
^ That. Thanks @ericmdantas, closing.
remove require-dir from node_module and run npm i [email protected] --------this will solve the issue