Gulp: Node 10.15.0 - ReferenceError: internalBinding is not defined

Created on 3 Jan 2019  路  3Comments  路  Source: gulpjs/gulp

When trying to run any gulp task in Node 10.15.0, I get the following error:

const types = internalBinding('types');
              ^

ReferenceError: internalBinding is not defined
    at internal/util/inspect.js:31:15
    at req_ (/usr/local/google/home/benlesh/github.com/benlesh/angular/node_modules/natives/index.js:137:5)
    at require (/usr/local/google/home/benlesh/github.com/benlesh/angular/node_modules/natives/index.js:110:12)
    at util.js:25:21
    at req_ (/usr/local/google/home/benlesh/github.com/benlesh/angular/node_modules/natives/index.js:137:5)
    at require (/usr/local/google/home/benlesh/github.com/benlesh/angular/node_modules/natives/index.js:110:12)
    at fs.js:42:21
    at req_ (/usr/local/google/home/benlesh/github.com/benlesh/angular/node_modules/natives/index.js:137:5)
    at Object.req [as require] (/usr/local/google/home/benlesh/github.com/benlesh/angular/node_modules/natives/index.js:54:10)
    at Object.<anonymous> (/usr/local/google/home/benlesh/github.com/benlesh/angular/node_modules/vinyl-fs/node_modules/graceful-fs/fs.js:1:99)

What I've tried

I've tried rm -rf node_modules && npm install and rm -rf node_modules && npm cache clean --force && npm install, and I've even uninstalled gulp and reinstalled it. No dice.

Workaround

Downgrading to 10.13.0 (a version a coworker was using that worked) solves the issue.

Most helpful comment

npm install [email protected]

2246

All 3 comments

npm install [email protected]

2246

I still get this error after installing natives 1.1.6

I didn't want to install natives - because I don't really use it in my project.

Instead, I did the below steps and the issue has been fixed:

  1. Close the editor/IDE
  2. Remove node_modules and package--lock.json
  3. Run npm clean cache --force with administrator
  4. Run npm install

I am using node v10.15.3 and npm v6.9.0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zellwk picture zellwk  路  3Comments

fritzdenim picture fritzdenim  路  3Comments

XaBerr picture XaBerr  路  3Comments

borodean picture borodean  路  5Comments

emccorson picture emccorson  路  4Comments