fabric14
fabric14

Reputation: 11

Error in packaging a smart contract on IBM Blockchain Platform Visual Studio Extension

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

Answers (3)

ALFA
ALFA

Reputation: 1

Run below two command in Chaincode

nvm use v8.17.0

npm install

Upvotes: 0

jetulis
jetulis

Reputation: 168

It really looks for the module under ./bin Thus, try installing fabric-shim module manually using npm i fabric-shim.

Upvotes: 0

Pankaj Tripathi
Pankaj Tripathi

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

Related Questions