node-argon2 icon indicating copy to clipboard operation
node-argon2 copied to clipboard

Cannot Build from Source Automatically

Open DakotaLarson opened this issue 4 years ago • 2 comments

Steps to reproduce

  1. Install argon2 on CentOS7
  2. Run program
  3. See this error: http://prntscr.com/125xcbl

Expected behaviour

Not get an error

Actual behaviour

Get an error

Environment

Operating system: CentOS 7

Node version: 14.16.1

Compiler version:

This is related to #276, however, I think this description provides a better ask users can work with.

In the FAQ, it is stated that if you want to disregard the prebuilt binaries, you have to run npm rebuild argon2 --build-from-source or a similar command.

The formal issue at hand is that this behavior is not automatic. I cannot dictate to this library (through an environment variable for example) that I always want to disregard the prebuilt libraries, so if I run npm i I will always get unworkable code until I rebuild manually. Could this be made possible?

DakotaLarson avatar Apr 27 '21 22:04 DakotaLarson

I got argon2 to behave on CentOS 7 using SCL, info here: https://github.com/directus/directus/issues/6071#issuecomment-1379418550

cube-dan avatar Jan 11 '23 20:01 cube-dan

@cube-dan thanks for the tip! While not ideal to stay in outdated systems, it might help creating a migration path.

ranisalt avatar Jan 12 '23 13:01 ranisalt