Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node 10.15.0 - ReferenceError: internalBinding is not defined #2280

Closed
benlesh opened this issue Jan 3, 2019 · 3 comments
Closed

Node 10.15.0 - ReferenceError: internalBinding is not defined #2280

benlesh opened this issue Jan 3, 2019 · 3 comments

Comments

@benlesh
Copy link

benlesh commented Jan 3, 2019

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.

@max-ci
Copy link

max-ci commented Jan 3, 2019

npm install natives@1.1.6

#2246

@phated phated closed this as completed Jan 9, 2019
@bwasilewski

This comment has been minimized.

rzueger added a commit to odch/flightbox that referenced this issue Apr 14, 2019
Our gulp build currently fails on wercker, because of an error in the
`natives` package. Using `natives@1.1.6` instead of `natives@1.1.3`
should help.

Also see gulpjs/gulp#2280
rzueger added a commit to odch/flightbox that referenced this issue Apr 14, 2019
Our gulp build currently fails on wercker, because of an error in the
`natives` package. Using `natives@1.1.6` instead of `natives@1.1.3`
should help.

Also see gulpjs/gulp#2280
L30Bola added a commit to L30Bola/docker-images that referenced this issue Apr 25, 2019
Ainda é necessário limpar muita coisa desnecessária que torna a imagem gigante
É necessário resolver um bug (?) com o gulp - gulpjs/gulp#2280
@LouisWayne
Copy link

LouisWayne commented May 18, 2019

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

@gulpjs gulpjs locked as resolved and limited conversation to collaborators May 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants