0
votes

I've been following the step-by-step FabToken tutorial from https://hyperledger-fabric.readthedocs.io/en/latest/token/FabToken.html When I use the command issuing token, I got an error: bash: token: command not found

token issue --config /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/configorg1.json --mspPath /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp --channel mychannel --type BYFNcoins --quantity 100 --recipient Org1MSP:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp

bash: token: command not found

The expected result should be: 2019-03-12 00:49:43.864 UTC [token.client] BroadcastReceive -> INFO 001 calling OrdererClient.broadcastReceive Orderer Status [SUCCESS] Committed [true]

1

1 Answers

0
votes

You don't have the executable token in your PATH. If you know the location, you can directly call it as /full/path/to/token ..., or add that path to your PATH environment variable.

Also note that the current directory . is not (usually) in PATH -- you need to specify that path, too, i.e. call using ./token ....