➜ 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
The current version of
nanused bynode-libpqis incompatible with Node.js 26: