npm安装比特币 - 接收 - 付款 - 保存

问题描述 投票:-1回答:1

我写的终端:

npm install bitcoin-receive-payments --save

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

open my file explorer ^image^

node.js npm ubuntu-18.04
1个回答
0
投票

它应该已经安装在节点模块文件夹中,要在您的应用程序中使用它,您现在需要在您希望使用它的文件中使用(“比特币 - 接收付款”)。

即。

    const BitcoinGateway = require('bitcoin-receive-payments')
const gateway = new BitcoinGateway(pub_key, openexchangerates_key)
© www.soinside.com 2019 - 2024. All rights reserved.