I have created whole environment for Hyperledger-fabric but in last while starting web app composer-playground this error occured in terminal for MAC-OS.
fabric-dev-servers prashantgautam$ -g composer-playground
-bash: -g: command not found
Hyperledger Composer isn't included with Hyperledger Fabric automatically. Also, Composer's support only reaches to Fabric 1.2 since it is no longer maintained.
If you would still like to install Hyperledger Composer (not recommended) you can follow the tutorial here.
Related
can anyone explain what is this as far as I know I had installed sanity and nodemon globally they are also not allowed ?
PS C:\Users\Rupesh Gupta\Documents\GitHub\PinShare\pinshare_frontend> npx create-react-app#next --scripts-version=#next --template=cra-template#next ./
You are running create-react-app 5.0.0-next.60+6a3315b7, which is behind the latest release (5.0.0).
We no longer support global installation of Create React App.
Please remove any global installs with one of the following commands:
npm uninstall -g create-react-app
yarn global remove create-react-app
The latest instructions for creating a new app can be found here:
https://create-react-app.dev/docs/getting-started/
PS C:\Users\Rupesh Gupta\Documents\GitHub\PinShare\pinshare_frontend>
I had the same issue on that project. I solved it by running
npx clear-npx-cache
and then
npx create-react-app#latest ./ --use-npm
"./" if you're already in the folder you wanted to CRA into, or "your-project-name" if you're not.
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
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.
How to Start Playground in the developer environment? Please provide the document.
I am following the developer installation guide: https://hyperledger.github.io/composer/tutorials/developer-guide.html
If you want to run the Playground locally, install the composer-playground using the following command.
npm install -g composer-playground
I don't see how to start the playground after that.
Thank you, Christo. I am able to install now. I installed playground first and installed all other composer components(npm install -g composer-cli,npm install -g generator-hyper ledger-composer,npm install -g composer-rest-server). Problem is now, I am not able to deploy .bna using admin credentials for composer-rest-server. Next tried deploying using the PeerAdmin for composer-rest-server, which was successful.
Now the issue is not allowing the asset creation (Throwing, the asset cannot be created via PeerAdmin). What is the proper way to set up the developer environment plus playground in the same environment?
The instructions are in the tutorial documentation. Basically, you need to install and start the Hyperledger Fabric network, configured for Composer. It will launch the playground in your favorite browser.
After the first time you run it, you can start/stop the network with composer.sh to re-start, and composer.sh stop (from the directory into which you installed fabric-tools) to shutdown all the Fabric and Composer docker images. Once started, you can open http://localhost:8080/login to start the playground.
Normally I do install Laravel 5.1 by following this command regarding to documentation:
composer create-project laravel/laravel --prefer-dist
It works fine.
But I read in the documentation under "Via Laravel Installer" also it is possible to install via Laravel Installer, which is much faster than installing via Composer:
laravel new blog
But to use this method I need to run following command once:
composer global require "laravel/installer=~1.1"
When I do run it I get following errors many times
Deprecation Notice: Composer\Package\Version\VersionParser::parseLinks
is deprecated. Use \Composer\Package\Loader\ArrayLoader::parseLinks()
instead in
phar://C:/ProgramData/Composer/bin/composer.phar/src/Composer/Package/Version/VersionParser.php:226
after many line of same error ./composer.json has been updated appears and it continues with the same line of errors, it ends with following
Loading composer repositories with package information Updating
dependencies (including require-dev) Nothing to install or update
Generating autoload files
What is wrong with it? Any idea or solution.
My environment: Windows 10, GitBash and cmder console.
Update of composer, I did ran composer self-update also
Snapshot of console
EDIT:
Note, I can confirm after solving the issue that the installation via Laravel Installer method is faster than composer.
The Composer Assets Plugin you've installed locally is using a deprecated method of Composer. The plugin is already fixed, so run composer global update to get the latest versions with the bug fix. After it, you should be able to run the command succesfully.
If this doesn't work (as you might get the same error running the previous command), try removing the global vendor directory. When running any global Composer command, it outputs something like "Changed current directory to XXX". Remove the XXX/vendor directory and then try running the command.
In addition to #WouterJ answer.
Worst case if the steps provided by #WouterJ did not work, you could manage to uninstall and reinstall composer for windows.
When done, run composer global update to be sure to get latest updates, if there was.
Then run composer global require "laravel/installer=~1.1" and it should works.
Remember to update your windows environment path C:\Users\UserName\AppData\Roaming\Composer\vendor\bin