Home > Tutorials > Installing NodeJS and NPM on Ubuntu VM

Installing NodeJS and NPM on Ubuntu VM

Instructions

  1. Download and install vmware player
  2. Download Ubuntu
  3. Install Ubuntu as a virtual machine
    • Create a New Virtual Machine
    • Choose “Installer disc image file (iso)”
    • Select the ubuntu iso you downloaded
  4. Install the OpenSSL development packages
    • Open command prompt
    • Type in: “sudo apt-get install libssl-dev”
  5. Install node.js and npm (https://gist.github.com/579814)
    • Follow the second instruction (only-git-all-the-way.sh)
    • Here are the steps for installing the stable version (v0.4)
    • echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
      echo 'export NODE_PATH=$HOME/local:$HOME/local/lib/node_modules' >> ~/.bashrc
      . ~/.bashrc
      
      cd node-v0.4.10
      ./configure --prefix=~/local
      make install
      cd ..
      
      git clone git://github.com/isaacs/npm.git
      cd npm
      make install

Un-Installation Instructions

  1. To uninstall npm:
  2. To uninstall Node.js:


Advertisements
Categories: Tutorials
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: