Cannot install bcrypt node.js module on Centos Server

后端 未结 4 1175
栀梦
栀梦 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:21

    For me the answer was to ensure that I had gcc, openssl and node-gyp installed.

    To install gcc and openssl, use yum:

    sudo yum install gcc-c++ openssl-devel
    

    To install node-gyp (globally), use npm:

    npm install -g node-gyp
    

    Then the npm install of bcrypt worked just fine on centos

提交回复
热议问题