gulp icon indicating copy to clipboard operation
gulp copied to clipboard

Gulp fails to run on NodeJS 8, having NPM 5.0

Open creage opened this issue 9 years ago • 4 comments

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

creage avatar Jun 01 '17 08:06 creage

I had the same issue. It's not connected to npm 5 (I was installing with npm 4.2).

akehir avatar Jun 01 '17 12:06 akehir

This has nothing to do with gulp it was a bug with require-dir, which was fixed in 0.3.2 (released yesterday).

ericmdantas avatar Jun 01 '17 12:06 ericmdantas

^ That. Thanks @ericmdantas, closing.

yocontra avatar Jun 01 '17 17:06 yocontra

remove require-dir from node_module and run npm i [email protected] --------this will solve the issue

jaganchoccy avatar May 23 '18 10:05 jaganchoccy