Skip to content

Problem with Node 9 and require-dir #34

@ghost

Description

my current node version: 9.6.1 and npm version is : 5.6.0
this is react project using gulp. when i run this project with this command gulp dev, it occurs the error like that:

> gulp dev

G:\KCY\react-heatmap\node_modules\react-component-gulp-tasks\node_modules\require-dir\index.js:93
            if (!require.extensions.hasOwnProperty(ext)) {
                                    ^

TypeError: require.extensions.hasOwnProperty is not a function
    at requireDir (G:\KCY\react-heatmap\node_modules\react-component-gulp-tasks\node_modules\require-dir\index.js:93:37)
    at Object.<anonymous> (G:\KCY\react-heatmap\node_modules\react-component-gulp-tasks\node_modules\gulp-git\index.js:4:18)
    at Module._compile (module.js:662:30)
    at Object.Module._extensions..js (module.js:673:10)
    at Module.load (module.js:575:32)
    at tryModuleLoad (module.js:515:12)
    at Function.Module._load (module.js:507:3)
    at Module.require (module.js:606:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (G:\KCY\react-heatmap\node_modules\react-component-gulp-tasks\tasks\release.js:1:73)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! react-heatmap@1.0.6 start: `gulp dev`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the react-heatmap@1.0.6 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging
output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\user\AppData\Roaming\npm-cache\_logs\2018-06-02T02_09_32_952Z-debug.log

i am not sure why i got this error.
if you want, I can upload my package.json file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions