I follow this guide for installation (on Mac)
https://hyperledger.github.io/composer/latest/installing/development-tools.html#appendix
and this one for developing a business network
https://hyperledger.github.io/composer/v0.16/tutorials/developer-tutorial
everything is fine, unless when I shutdown the computer, the composer seems to be uninstalled!! Mac's terminal does not recognize composer commands and I have to uninstall and install all them again! Can you give your idea about what the cause is? Thanks
Make sure You have install all composer package with -g and Not using nvm. If using nvm then make sure to be on same version every time you use composer command.
Related
Today i installed react in my pc with windows, i had to install chocolaley, i didnt like this, but no problem, i installed chocolaley. Now, when i want to create a app (in the powershell of windows) using the command meteor install my_app the Meteor is so slow, and the instalation dont finish, the message that show all the time is meteor loading package standard-minified css I need hellp, and now i cant use linux or OSX. I have to tried the solution but i cant now.
Try npm cache clean --force to clear your npm cache then install meteor again
I am new to the hyperledger composer. To install it, I follow the steps mentioned here: Hyperledger Composer
However, I am facing the following issue:
Error: Cannot use Composer version #package_branch_alias_version# (1.0.0-beta2) 2016-03-27 16:00:34 version of composer with fabric 1.2, v0.20 or higher is required
I would also like to add that I have checked the composer version composer -v which is: Composer version #package_branch_alias_version# (1.0.0-beta2) 2016-03-27 16:00:34
P.S I can see a similar post createPeerAdminCard.sh not running. However, I couldn't solve my problem yet. It would be great if someone could explain " uninstall the 'other composer' and then install composer-cli with -g as per the Composer Dev Environment documents." I have already followed the guidelines stated in Updating components
Please guide me.
First off I would like to point out that Hyperledger Composer is end of life, you should not be using it except maybe to get a general idea around the concept of digital assets and not as a learning tool for hyperledger fabric.
In your case the problem is you have not installed hyperledger composer, you have installed another tool called composer by the looks of things.
To start with Hyperledger composer, its better to start with installing pre-reqs using this:
curl -O https://hyperledger.github.io/composer/v0.19/prereqs-ubuntu.sh
chmod u+x prereqs-ubuntu.sh
Then Simply running: npm install -g composer-cli#0.19
You can refer: https://hyperledger.github.io/composer/v0.19/installing/development-tools
My host provider allows me to use only root user (the only one with /bin/bash) on my virtual machine that I'm using to host a drupal 8 site installed with composer.
From composer website I see they strongly advise to avoid running composer as super-user/root, they say to use composer install --no-plugins
I tried the command apt-get composer install --no-plugins but outputs the error
E: Command line option --no-plugins is not understood in combination
with the other option
I'm still running composer as root, even thought there is always an alert, how can avoid that?
If Composer is already installed, there is no need to call apt-get, which is the standard package installer on Debian systems. composer install --no-plugins does the job
Composer has worked fine without incident. I recently upgraded my Mac (Mojave) to PHP 7.2.12 using homebrew.
Now I'm unable to run composer. It simply hangs and does nothing, yet if I run it as sudo it runs fine.
I've already validated:
Composer lives in my /usr/local/bin folder and that folder is in the $PATH
Composer's permissions are 0755
I've checked the ~/.composer folder and it is owned by the user with proper permissions
I've tried removing it and re-installing, yet I experience the same hang as soon as I go to run php composer-setup.php
Any help or suggestions would be great.
While debugging my application I realized that when I ran the composer manager that it had a debug break in it that was being cause by xdebug in phpStorm.
So future note to anyone who encounters a similar issue, make sure your debugger is disabled when you run composer.
I had installed my business network and then successfully started it. Then I opened my composer playground from the command line. After opening it is showing the below message what should I do?
This looks like you have installed composer-playground as root or using sudo or su.
The composer install instructions state that you should not use su/sudo.
There is additional information about installing composer in the Knowledge wiki, but if you are having permissions problems trying to install without root/su/sudo please see this link from the npm site.