[英]How to install a chaincode with a private npm dependency (private repository)
On Hyperledger Fabric we now have the ability to install a chaincode using node js and a package.json
file describing the code to be run in a script. 在Hyperledger Fabric上,我们现在可以使用节点js和
package.json
文件安装链代码,该文件描述了要在脚本中运行的代码。
As expected with package.json
, dependencies are resolved and the package runs. 正如
package.json
所预期的那样,依赖关系已解决,程序包将运行。
But, is it possible, and if so, how to instantiate a chaincode with a private dependency in the package.json? 但是,是否可能,如果可以,如何在package.json中实例化具有私有依赖关系的链码?
Thanks. 谢谢。
在回答我自己的问题时,可以将.npmrc
复制到.npmrc
容器中,以便能够安装私有软件包。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.