Notes On Node.JS

Installation

Note: The binary node conflicts with other packages. /usr/sbin/node is for cluster management.

$ sudo apt-get install npm

$ sudo npm install n -g

# install latest version of node
$ sudo n latest

# the install a specific version
sudo n 4.5.0

# List available node versions
$ n ls

$ /usr/bin/node -v
v6.5.0

# Note: Do not use nodejs command. It still uses the old ubuntu repository installed version.
$ nodejs -v
v0.10.25

Using ApiGee with Swagger API with help of Node.JS

See: https://github.com/apigee-127/a127-documentation/wiki/Quick-start

# To enable installing additional npm based user modules, do the following:
$ npm set prefix ~/npm

$ export PATH=~/npm/bin:$PATH   # Add it to your .bashrc

$ npm install -g apigee-127

$ mkdir apigee ; cd apigee
$ a127 project create hello-world

$ cd hello-world
$ a127 project start

Table Of Contents

Previous topic

1   Notes On Scala

Next topic

1   Notes On Jython

This Page