I get an error when using composer with fabic 1.2 - hyperledger-fabric

I am currently trying to work through this tutorial here
When I try and run the createPeerAdminCard.sh script, i get the error Cannot use Composer version 1.8.3 2019-01-30 08:31:33 version of composer with fabric 1.2, v0.20 or higher is required
I have looked and it seems composer version 1.8.3 is the latest release, I just upgraded from 1.6.x and was getting the same error with that version of composer.
I have checked all of the prerequisites for installing composer here and I seem to have all the right versions (Prerequisites)
A similar post is here but running the suggested npm install -g composer-cli#0.x.x did not seem to fix the issue.
Any suggestions would be appreciated

Use composer v0.20. I hope that will solve your issue.Hope it help.

Related

NPM install failing due to nest-azure-ad-jwt-validator package compatibility with nestjs version 9

I am using angular 14 in my application with nestjs version ^9.0.0. Now the requirement is to use "nest-azure-ad-jwt-validator" package for some purpose. When I am trying to install version 4.0.0 of "nest-azure-ad-jwt-validator", npm is throwing compatibility issue with nestjs/common package and not able to resolve the dependency. It would help if someone tell what version of "nest-azure-ad-jwt-validator" I should use which is compatible with nestjs version 9. Check the link to see package information:
https://www.npmjs.com/package/nest-azure-ad-jwt-validator
I checked package details and it is showing version 4.0.0 as the latest one.
Error I am getting.
The actual version of "nest-azure-ad-jwt-validator" doesn't support nestjs version 9.
I just made a pull request on the repo to upgrade it: https://github.com/benMain/nest-azure-ad-jwt-validator/pull/50.
for now if you still want to use this package, you should stick with the nestjs 8 until the next release.

Global build tools can't be installed as a pre-requisite for setting up hyperledger fabric

I'm trying to setup hyperledger fabric in my windows 10 system. While installing the pre-requisites mentioned in the fabric's documentation I couldn't install the global build tools. I tried running the command:
npm install --global windows-build-tools
but the installation gets stuck at:
successfully installed Python 2.7 and it stops at rpc connection was closed.Stream was closed.
I also followed the following youtube tutorial but still facing the same problem. The reference link:
https://www.youtube.com/watch?v=7BeJ6MSKH9k&t=457s
Update: It works by changing the command to
npm install --global windows-build-tools#4.0.0
Seems the problem is with the latest version of build tools. Some compatibility issue.

Composer-cli does not seem to know runtime for an argument

I'm doing the developers tutorial found here: https://hyperledger.github.io/composer/v0.16/tutorials/developer-tutorial.html
On the step where you have to runtime install I call this command:
composer runtime install --card PeerAdmin#hlfv1 --businessNetworkName tutorial-network
But get the following error:
Unknown arguments: card, businessNetworkName, runtime, install
Ive looked through the composer-cli documentation and runtime is still in there. Is the documentation out-dated or what else might be going wrong here. I'm absolutly clueless.
You are looking at a tutorial for the version v0.16 - this is now quite dated and unless you are specifically using this version you should use the latest doc and the latest Composer version.
The latest doc is here: https://hyperledger.github.io/composer/latest/tutorials/developer-tutorial
Check you version of Composer with composer -v hopefully you are using v0.19.6 or similar.
(Composer runtime install was a v0.16 command and no longer present in v0.19.* - the new commands are in the tutorial.)
Composer v0.19.* works with Fabric v1.1.0 - this is the latest version and hopefully this is the version you have. You can check your Fabric version by using docker images and you should see image names ending -1.1.0 If not you will need to remove the existing containers and images and re-do the step to create the Development Fabric as described in the latest docs.

How to downgrade from service latest service fabric runtime 5.3.311 to 5.3.301?

The Web platform installer only installs the latest version.
I have also tried using offline installer, but it seems there is an existing issue with 5.3.301 runtime fresh install on Windows10 anniversary version. Please help. I'm stuck here very bad. Any other possible ways to install?

Upgrading to latest nodejs from nodejs 0.8 using npm command

I was trying to install nodejs using the node-v0.10.25-x86.msi windows installer but getting the following error
I was able to install node.js 0.8 version, is there any way to upgrade to latest version
i have a similar issue. Try installing this one
http://nodejs.org/docs/v0.8.0/
It solved my problem. It is very stable version.

Resources