NodeJS 4 & 5 npm install fail for bcrypt and db-migrate

后端 未结 3 1534
灰色年华
灰色年华 2021-02-15 10:36

Some time ago I installed NodeJS (v0.10.31) and worked on a project without problems, but just recently I decided to update to Node v5.0.0. Everything was fine until I decided t

3条回答
  •  再見小時候
    2021-02-15 10:50

    This single line of update worked for me. Found the answer from this link https://github.com/ncb000gt/node.bcrypt.js/issues/351

    sudo apt-get install build-essential
    
    Then install bcrypt:
    
    npm install bcrypt
    

提交回复
热议问题