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

Elasticbeanstalk deployment help

Open rgovindji opened this issue 3 years ago • 2 comments

I'm able to deploy to elasticbeanstalk by running the command "npm install argon2--save--target = 12.2.0 --target_arch = x64--target_platform = linux--target_libc = glibc” before deploying.

The issue I have is locally I'm on OSX so I always have to reinstall argon2 after a deployment so I can work. I was wondering if there is a better way to do this so that elasticbeanstalk always chooses to use the linux binary and locally I don't need to run the npm install script before the deployment?

rgovindji avatar Aug 19 '21 21:08 rgovindji

To solve that, the prerequisites must be met, but your code fails in my elasticbeanstalk linux environment.

`npm install argon2--save--target = 12.2.0 --target_arch = x64--target_platform = linux--target_li bc = glibc //npm ERR! code EINVALIDTAGNAME //npm ERR! Invalid tag name "=": Tags may not have any characters that encodeURIComponent encodes.

//npm ERR! A complete log of this run can be found in: //npm ERR! /root/.npm/_logs/2022-04-21T07_11_26_767Z-debug.log`

on21life avatar Apr 21 '22 07:04 on21life

@rgovindji I know it's been a while, I just released an alpha version under the next tag that will not have this issue, as it packages binaries for all architectures supported at once, no install step required.

You can try it by installing argon2@next with your preferred package manager, the rest of the library remains the same.

ranisalt avatar Dec 30 '23 12:12 ranisalt

Should be fixed with v0.40.1

ranisalt avatar Feb 23 '24 22:02 ranisalt