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)
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.
Downgrading to 10.13.0 (a version a coworker was using that worked) solves the issue.
npm install [email protected]
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:
node_modules and package--lock.jsonnpm clean cache --force with administratornpm installI am using node v10.15.3 and npm v6.9.0
Most helpful comment
npm install [email protected]2246