============================== Notes On Node.JS ============================== .. contents:: Table of Contents :depth: 2 References ============= * Installing latest version. Use npm and n : http://stackoverflow.com/questions/34974535/install-latest-nodejs-version-in-ubuntu-14-04 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