Hyperledger fabric fabcar结构示例显示找不到模块';结构网络&x27;运行node enrollAdmin.js代码时

Hyperledger fabric fabcar结构示例显示找不到模块';结构网络&x27;运行node enrollAdmin.js代码时,hyperledger-fabric,hyperledger,hyperledger-chaincode,Hyperledger Fabric,Hyperledger,Hyperledger Chaincode,我正在运行fabcar fabric示例,在我运行的fabcar文件夹中。/startFabric.sh运行良好,网络自始至终启动。但之后,当我在javascript文件夹中运行node enrollAdmin.js时,它会显示以下错误!!!我的操作系统是ubuntu 18.4 我尝试了互联网上提供的不同解决方案,如npm安装等,但没有一个有效 节点enrollAdmin.js错误日志 module.js:549 throw err; ^ Error: Cannot find

我正在运行fabcar fabric示例,在我运行的fabcar文件夹中。/startFabric.sh运行良好,网络自始至终启动。但之后,当我在javascript文件夹中运行node enrollAdmin.js时,它会显示以下错误!!!我的操作系统是ubuntu 18.4

我尝试了互联网上提供的不同解决方案,如npm安装等,但没有一个有效

节点enrollAdmin.js错误日志

module.js:549
    throw err;
    ^

Error: Cannot find module 'fabric-network'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/usr/local/hyperledger/fabric-samples/fabcar/javascript/enrollAdmin.js:8:47)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)

module.js:549
犯错误;
^
错误:找不到模块“结构网络”
在Function.Module.\u解析文件名(Module.js:547:15)
在Function.Module.\u加载(Module.js:474:25)
at Module.require(Module.js:596:17)
根据需要(内部/module.js:11:18)
反对。(/usr/local/hyperledger/fabric samples/fabcar/javascript/enrollAdmin.js:8:47)
编译(Module.js:652:30)
在Object.Module.\u extensions..js(Module.js:663:10)
在Module.load(Module.js:565:32)
在tryModuleLoad时(module.js:505:12)
在Function.Module.\u加载(Module.js:497:3)

`错误:找不到模块'fabric network'什么是fabric network?你必须清楚,请将所有必要的代码粘贴到github,并在此处粘贴一个链接我会看一看这是hyperledger结构平台在结构示例中给出的标准fabcar示例()错误在enrollAdmin.js第8:47行
const{FileSystemWallet,X509WalletMixin}=require('fabric-network')
@NarendranathReddyOK,因此您没有更改fabcar中的任何内容,错误显示未找到fabric网络模块,您的系统操作系统是什么?哇,我在fabcar目录中发出命令
sudo npm install--unsafe perm
,解决了问题。由于没有安装节点模块而导致实际问题,因此获得了此解决方案,您应该首先在javascript目录中运行“npm安装”,然后一切都应该正常!