kelektiv / node.bcrypt.js

bcrypt for NodeJs
MIT License
7.43k stars 510 forks source link

BCrypt@5.0.1 - Install Failure in AWS - Linux (node-v14.18.2-linux-x64) #914

Closed arulananthams closed 2 years ago

arulananthams commented 2 years ago

We created an NodeJS applicated and tested in local and it worked fine. Moved to my GitHub and trying to deploy to AWS - EC2 Instance using AWS Bean Stalk. During that process when code pipeline tried to pull and deploy got following error. Let me know if any other details needed from my end.

node-v14.18.2-linux-x64

2022/01/18 07:11:45.731452 [INFO] there is no nodejs version specified in package.json, skip installing specified version of nodejs 2022/01/18 07:11:45.731465 [INFO] Executing instruction: Use NPM to install dependencies 2022/01/18 07:11:45.731477 [INFO] use npm to install dependencies 2022/01/18 07:11:45.731499 [INFO] Running command /bin/sh -c npm config set jobs 1 2022/01/18 07:11:45.954411 [INFO] Running command /bin/sh -c npm --production install 2022/01/18 07:11:57.057479 [INFO]

bcrypt@5.0.1 install /var/app/staging/node_modules/bcrypt node-pre-gyp install --fallback-to-build

Failed to execute '/opt/elasticbeanstalk/node-install/node-v14.18.2-linux-x64/bin/node /opt/elasticbeanstalk/node-install/node-v14.18.2-linux-x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/var/app/staging/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/var/app/staging/node_modules/bcrypt/lib/binding/napi-v3 --napi_version=8 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1)

2022/01/18 07:11:57.057529 [ERROR] An error occurred during execution of command [app-deploy] - [Use NPM to install dependencies]. Stop running the command. Error: Command /bin/sh -c npm --production install failed with error exit status 1. Stderr:npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it! node-pre-gyp WARN Pre-built binaries not installable for bcrypt@5.0.1 and node@14.18.2 (node-v83 ABI, glibc) (falling back to source compile with node-gyp)

arulananthams commented 2 years ago

I followed the instructions as per the site, its worked fine.

https://mxnr.net/elastic-beanstalk-sass/