我写的终端:
npm install bitcoin-receive-payments --save
但只安装两个文件夹:node_modules和package-lock.json。我期待命令安装所有js文件。为什么没安装?
它应该已经安装在节点模块文件夹中,要在您的应用程序中使用它,您现在需要在您希望使用它的文件中使用(“比特币 - 接收付款”)。
即。
const BitcoinGateway = require('bitcoin-receive-payments')
const gateway = new BitcoinGateway(pub_key, openexchangerates_key)