npm安装比特币收款-保存

时间:2018-10-02 14:16:16

标签: node.js npm ubuntu-18.04

我写终端:

npm install bitcoin-receive-payments --save

但仅安装两个文件夹:node_modules和package-lock.json。我期望命令安装所有js文件。为什么没有安装?

open my file explorer ^image^

1 个答案:

答案 0 :(得分:0)

它应该已经安装在node modules文件夹中,要在您的应用中使用它,现在您需要在要使用它的文件中要求(“ bitcoin-receive-payments”)。

即。

    const BitcoinGateway = require('bitcoin-receive-payments')
const gateway = new BitcoinGateway(pub_key, openexchangerates_key)