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

Installation falls back to build-from-source in NodeJS 20.12 #228

Open
bolt-juri-gavshin opened this issue Apr 9, 2024 · 0 comments
Open

Comments

@bolt-juri-gavshin
Copy link

bolt-juri-gavshin commented Apr 9, 2024

Starting from NodeJS 20.12.0, npm install always builds from source with the following error:

#7 2.704 npm info run [email protected] install node_modules/rocksdb node-gyp-build
#7 2.704 
#7 2.704 > [email protected] install
#7 2.704 > node-gyp-build
#7 2.704 
#7 2.806 terminate called after throwing an instance of 'std::bad_alloc'
#7 2.806   what():  std::bad_alloc
#7 2.806 Aborted
#7 2.806

Dockerfile to reproduce:

FROM node:20.12.0-bookworm
WORKDIR /app
RUN echo 'foreground-scripts = true' >> .npmrc
RUN npm install [email protected] --force --loglevel=verbose

Not sure, whether the bug is in NodeJS or rocksdb or node-gyp-build, but this code worked fine in NodeJS 16, 18 and 20.11.

NodeJS issue: nodejs/node#52436

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant