Reputation: 11
To create a sample smart contract, I have followed the process in the link below:
https://marketplace.visualstudio.com/items?itemName=IBMBlockchain.ibm-blockchain-platform
In the step of 'Package a smart contract project,' the following error occurred: [ERROR] Error: ENOENT: no such file or directory, stat '/Users/..../node_modules/.bin/fabric-chaincode-node'
Under the /.bin directory, actually the fabric-chaincode-node is not found. Is the fabric code verson/release in my environment not met to what VSCode extension requires?
Upvotes: 1
Views: 1036
Reputation: 168
It really looks for the module under ./bin Thus, try installing fabric-shim module manually using npm i fabric-shim.
Upvotes: 0
Reputation: 1
I uninstalled node version 10 and installed node version 8. Create the contract again and re build package . It worked for me
Upvotes: 0