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

incorrect data check error - How to pass additional arguments when building node? #719

Closed
convenient opened this issue Dec 1, 2021 · 3 comments

Comments

@convenient
Copy link

I am having an issue on the m1 silicon macbooks whereby the node version is installed, but subsequent npm install fails with incorrect data check error.

See main issue here nodejs/node#39313

Looking at vercel/pkg-fetch@925111b we can build node with a --shared-zlib flag which seems to fix the issue?

I can see that this is possible within nvm, nvm-sh/nvm#2653 (comment)

Is it possible to do something similar when building node with this tool?

@convenient
Copy link
Author

I think this is correct, sorry got a bit overwhelmed by documentation there.

NODE_CONFIGURE_OPTS="--shared-zlib" arch -x86_64 nodenv install $VERSION

@jasonkarns
Copy link
Member

Yes, that's correct. NODE_CONFIGURE_OPTS (and NODE_CONFIGURE_OPTS_ARRAY) are passed to ./configure before invoking make. (for which there is also then NODE_MAKE_OPTS and NODE_MAKE_OPTS_ARRAY)

Did you get it sorted?

@convenient
Copy link
Author

yes i did get it sorted thanks @jasonkarns

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

2 participants