I am running the fabcar fabric-sample, in fabcar folder i run ./startFabric.sh that worked fine and network launched from start to end. but after that when i running node enrollAdmin.js in javascript folder it shows the following error!!! My OS is ubuntu 18.4
I tried different solutions given on internet like npm install etc but non of them worked.
node enrollAdmin.js error logs
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)