Cannot install bcrypt node.js module on Centos Server

后端 未结 4 1204
栀梦
栀梦 2020-12-03 15:49

I\'m trying to install bcrypt on CentOS server but I got the following error:

info postuninstall bcrypt@0.5.0
ERR! bcrypt@0.5.0 install: `make build`
ERR! `s         


        
4条回答
  •  臣服心动
    2020-12-03 16:15

    Pre-built binaries are usually available for bcrypt in a few hours after a new release of bcrypt or after a few days after a new NodeJS version is released.

    However, remember that binaries are only provided as a convenience.

    If you see an error such as:

    `You need the following packages on CentOS / RHEL / Fedora

    • gcc-c++ - In order to install a compiler chain to compile the node modules.
    • make - To run the generated Makefile by node-gyp, which invokes compilers in order
    • python - RHEL and CentOS come with the required version of python installed

    Make sure all dependencies are installed with this command,

    yum install -y gcc-c++ make

    and then proceed with the bcrypt installation.

    For other systems see: https://github.com/kelektiv/node.bcrypt.js/wiki/Installation-Instructions

提交回复
热议问题