Skip to content

Can't install with Node.js 26 #132

Description

@mureinik

The current version of nan used by node-libpq is incompatible with Node.js 26:

➜  node-libpq git:(master) nvm use 26
Now using node v26.0.0 (npm v11.12.1)
➜  node-libpq git:(master) npm install

> [email protected] install
> node-gyp rebuild

gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | arm64
gyp info find Python using Python version 3.9.6 found at "/Library/Developer/CommandLineTools/usr/bin/python3"

# Lots of warnings snipped for brevity's sake

In file included from ../src/connection.cc:1:
In file included from ../src/addon.h:4:
../node_modules/nan/nan.h:2596:9: error: no type named 'AccessControl' in namespace 'v8'
 2596 |   , v8::AccessControl settings
      |     ~~~~^
../node_modules/nan/nan.h:2653:9: error: no type named 'AccessControl' in namespace 'v8'
 2653 |   , v8::AccessControl settings = v8::DEFAULT
      |     ~~~~^
../node_modules/nan/nan.h:2653:34: error: no member named 'DEFAULT' in namespace 'v8'; did you mean 'UV_EFAULT'?
 2653 |   , v8::AccessControl settings = v8::DEFAULT
      |                                  ^~~~~~~~~~~
      |                                  UV_EFAULT
/Users/allon/Library/Caches/node-gyp/26.0.0/include/node/uv.h:193:16: note: 'UV_EFAULT' declared here
  193 |   UV_ERRNO_MAP(XX)
      |                ^
In file included from ../src/connection.cc:1:
In file included from ../src/addon.h:4:
../node_modules/nan/nan.h:2706:9: error: no type named 'AccessControl' in namespace 'v8'
 2706 |   , v8::AccessControl settings = v8::DEFAULT
      |     ~~~~^
../node_modules/nan/nan.h:2706:34: error: no member named 'DEFAULT' in namespace 'v8'; did you mean 'UV_EFAULT'?
 2706 |   , v8::AccessControl settings = v8::DEFAULT
      |                                  ^~~~~~~~~~~
      |                                  UV_EFAULT

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