2017-02-24 84 views
1

我的系統細節安裝bcrypt模塊 的Ubuntu 16.04.1 LTS不能在節點JS

節點-v V6.0.0

NPM -v 3.8.6

node-pre-gyp ERR! Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v1.0.2/bcrypt_lib-v1.0.2-node-v48-linux-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v48 ABI) (falling back to source compile with node-gyp) 
+0

看到這個鏈接https://github.com/kelektiv/node.bcrypt.js/issues/487。嘗試更新節點後 –

回答

0

我解決了這個問題,首先安裝了所需的軟件包。

  1. 首先我檢查我的操作系統的版本,使用該command:由

    cat /etc/*-release 
    
  2. 然後updated庫:

    Sudo NPM install node-gyp -g 
    sudo apt-get install Python 
    sudo apt-get install make 
    sudo apt-get install g+ 
    
  3. 然後使用root權限我再次做到NPM install這次正確安裝了加密。