profile
viewpoint

Ask questionsReferenceError: internalBinding is not defined

  • Version: v10.14.2
  • Platform: Linux marina02 4.15.0-36-generic #39-Ubuntu SMP Mon Sep 24 16:19:09 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
  • Subsystem:

<!-- Please provide more details below this comment. --> I updated node to the latest v10.x.x and now when running gulp I'm getting an error on the util module

internal/util/inspect.js:31
const types = internalBinding('types');
              ^
ReferenceError: internalBinding is not defined
    at internal/util/inspect.js:31:15
    at req_ (/var/www/node/movie-website/node_modules/natives/index.js:137:5)
    at require (/var/www/node/movie-website/node_modules/natives/index.js:110:12)
    at util.js:25:21
    at req_ (/var/www/node/movie-website/node_modules/natives/index.js:137:5)
    at require (/var/www/node/movie-website/node_modules/natives/index.js:110:12)
    at fs.js:42:21
    at req_ (/var/www/node/movie-website/node_modules/natives/index.js:137:5)
    at Object.req [as require] (/var/www/node/movie-website/node_modules/natives/index.js:54:10)
    at Object.<anonymous> (/var/www/node/movie-website/node_modules/gulp-nodemon/node_modules/graceful-fs/fs.js:1:99)
nodejs/node

Answer questions hellatan

Should it be installed globally?

this seems more of a dependency of a dependency issue. You shouldn't install modules globally b/c they won't be installed on other systems if you do. I'm pretty sure this is a problem with the graceful-fs package based on the stacktrace here and the comment I posted in andrewrk/node-s3-client#213.

useful!

Related questions

Crash with "req.handle.writev is not a function" on Socket.Writable.uncork hot 2
--max-http-header-size= is not allowed in NODE_OPTIONS hot 2
Assertion `(parser->current_buffer_len_) == (0)' failed hot 1
pkg-exports: "." errors without a specified `main` hot 1
shutdown ENOTCONN on TLS.Socket._final hot 1
Node.js 12.10 throwing EPROTO on HTTPS request hot 1
Remove util.inherits usage internally? hot 1
[Bug] Node 10.1.0 TLS issue with ldap: Client network socket disconnected before secure TLS connection was established hot 1
HTTP/2 requests eventually start throwing NGHTTP2_ENHANCE_YOUR_CALM errors hot 1
Incorrect timezone hot 1
HPE_INVALID_HEADER_TOKEN on http requests hot 1
HPE_INVALID_HEADER_TOKEN on http requests hot 1
crypto, bad decrypt hot 1
stream.finished behaviour change hot 1
display node.js version (process.version) at the end of stacktraces hot 1
Github User Rank List