Comments (4)
Two questions:
(1) What OS are you using? I've tested these scripts successfully on Ubuntu 16 LTS and did not require nodejs-legacy.
(2) What version of the tutorial are you using?
The setup_Ubuntu_Part_1.sh file should have the following lines of code in lines 112-139
function nodeV8Install()
{
showStep "${RED}node not installed. installing Node V8"
# Install nvm dependencies
showStep "Installing nvm dependencies"
sudo apt-get -y install build-essential libssl-dev
# Execute nvm installation script
showStep "Executing nvm installation script"
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
showStep "Set up nvm environment without restarting the shell"
export NVM_DIR="${HOME}/.nvm"
[ -s "${NVM_DIR}/nvm.sh" ] && . "${NVM_DIR}/nvm.sh"
[ -s "${NVM_DIR}/bash_completion" ] && . "${NVM_DIR}/bash_completion"
showStep "Installing nodeJS"
nvm install --lts
showStep "Configure nvm to use version 8"
nvm use --lts
nvm alias default 'lts/*'
# Install the latest version of npm
showStep "Installing npm"
npm install npm@latest -g
}
and the installNodeDev function, starting at line 159 should show @0.16.0 for the cli version.
function installNodeDev ()
{
if [[ $SDK_INSTALL == "true" ]]; then
showStep "The composer-cli contains all the command line operations for developing business networks."
npm uninstall -g composer-cli
npm install -g --python=python2.7 [email protected]
showStep "The generator-hyperledger-composer is a Yeoman plugin that creates bespoke applications for your business network."
npm uninstall -g generator-hyperledger-composer
npm install -g --python=python2.7 [email protected]
showStep "The composer-rest-server uses the Hyperledger Composer LoopBack Connector to connect to a business network, extract the models and then present a page containing the REST APIs that have been generated for the model."
npm uninstall -g composer-rest-server
npm install -g --python=python2.7 [email protected]
showStep "Yeoman is a tool for generating applications. When combined with the generator-hyperledger-composer component, it can interpret business networks and generate applications based on them."
npm install -g --python=python2.7 yo
else
showStep "${RED}skipping NODE SDK for HyperLedger install"
fi
}
from zerotoblockchain.
Hi, so
- I installed from scratch ubuntu-16.04.3-server-amd64
- clone this github repository
- the step InstallNodeDev - failed at the point when npm attempts to compile the packages. On the process NPM calls Node ... without a link it fails .. nodejs ins ... perhaps you can create a link "ln -s
which nodejs
/usr/local/bin/node" as part of the script - once I installed the nodejs legacy - I was able to complete the install and start fabric/etc
from zerotoblockchain.
This may be a result of you using the server version of ubuntu 16.04. The testing that I've done has been against the desktop version, specifically using ubuntu-16.04.3-desktop-amd64.iso as my foundation. Have installed native, VirtualBox and VMWare; none of those required the nodejs Legacy installation. Thanks for the info; I'll check later in the week against the server version and see if there's a way to catch this as part of the standard install process.
from zerotoblockchain.
install scripts have been updated
from zerotoblockchain.
Related Issues (20)
- Chapter 13 - Start Unsuccessful on bx cf push
- Chapter 13 - Autoload Not Initiating HOT 2
- Debian stretch not supported HOT 1
- Chapter 1 pdf not opening properly after downloading HOT 2
- some npm packages deprecated when installing for linux due to new verions or not maintained packages HOT 1
- Node index chapter06 HOT 3
- Update the Composer versions HOT 1
- Chapter 03 npm install error sh: 1: composer: not found
- Chapter 3: Ubuntu tara is not supported in Linux mint
- Chapter03 - npm install error HOT 1
- error cannot ffind module
- Chapter04 npm run test fails HOT 2
- bash: ./buildAndDeploy.sh: No such file or directory HOT 3
- npm test error Chapter 04 HOT 2
- node index error : Chapter 05 HOT 2
- No Roles Button : Chapter 05
- Chapter11 : The unified user experience screen
- Error trying invoke business network
- Invoking API from an external UI : Chapter04
- npm run test error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zerotoblockchain.