I've been following the hyperledger fabric tutorials and the asset-transfer-basic chaincode is not being deployed properly. My fabric version is 2.2, and my golang version is 1.18.x .
I've run this command :
./network.sh deployCC -ccn basic -ccp ../asset-transfer-basic/chaincode-go -ccl go
I'm being presented with this error :
Error: failed to read chaincode package at 'basic.tar.gz': open basic.tar.gz: no such
file or directory
+ PACKAGE_ID=
Error: failed to normalize chaincode path: 'go list' failed with: go: could not
create module cache: mkdir /home/hypernew/go/pkg/mod: permission denied: exit status 1
What can I do to solve this?