GithubHelp home page GithubHelp logo

Comments (4)

rddill-IBM avatar rddill-IBM commented on August 12, 2024

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.

rmandrad avatar rmandrad commented on August 12, 2024

Hi, so

  1. I installed from scratch ubuntu-16.04.3-server-amd64
  2. clone this github repository
  3. 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
  4. once I installed the nodejs legacy - I was able to complete the install and start fabric/etc

from zerotoblockchain.

rddill-IBM avatar rddill-IBM commented on August 12, 2024

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.

rddill-IBM avatar rddill-IBM commented on August 12, 2024

install scripts have been updated

from zerotoblockchain.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.