Full-Node

Bcoin - 未找到數據庫後端

  • August 10, 2017
/root/BCoin/node_modules/bcoin/lib/db/backends.js:16
   throw new Error('Database backend "' + name + '" not found.');
   ^

Error: Database backend "leveldown" not found.
   at Object.get (/root/BCoin/node_modules/bcoin/lib/db/backends.js:16:11)
   at Function.getTarget (/root/BCoin/node_modules/bcoin/lib/db/ldb.js:118:21)
   at LDB (/root/BCoin/node_modules/bcoin/lib/db/ldb.js:32:20)
   at new ChainDB (/root/BCoin/node_modules/bcoin/lib/blockchain/chaindb.js:58:13)
   at new Chain (/root/BCoin/node_modules/bcoin/lib/blockchain/chain.js:91:13)
   at Object.<anonymous> (/root/BCoin/p2p_pool.js:7:13)
   at Module._compile (module.js:569:30)
   at Object.Module._extensions..js (module.js:580:10)
   at Module.load (module.js:503:32)
   at tryModuleLoad (module.js:466:12)
root@NoobEngine1:~/BCoin# 

當您的依賴項被扭曲時,就會發生這種情況,尤其是當 bcoin 有更新,其中 leveldown 被升級時。您應該擅長npm rebuild leveldown修復依賴關係樹,但如果這不起作用rm -rf node_modules && npm i

引用自:https://bitcoin.stackexchange.com/questions/57749