-
Notifications
You must be signed in to change notification settings - Fork 3
Install node
In order to install Node on your computer, all you have to do is simply follow these steps :
- Download the Windows installer from the http://nodejs.org/[Nodes.js® web site]
- Run the installer you've just downloaded
- Follow the prompts in the installer
- Restart your computer
Before installing npm, we need to install two other applications:
XCode: Apple's XCode development software is used to build Mac and iOS apps, but it also includes the tools you need to compile software for use on your Mac. You can get it here at https://itunes.apple.com/us/app/xcode/id497799835?mt=12[Apple App Store]
Homebrew: Homebrew is a package manager for the Mac — it makes installing most open source sofware (like Node) much easier. To install Homebrew just open Terminal and type:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
You'll see messages in the Terminal explaining what you need to do to complete the installation process. Once homebrew is installed, you have to do type the following:
brew install node
You need to install a number of dependencies before you can install Node:
- For Ubuntu or Debian-based Linux distributions, run the following command in your terminal:
sudo apt-get install build-essential curl git m4 ruby texinfo libbz2-dev libcurl4-openssl-dev libexpat-dev libncurses-dev zlib1g-dev
- For Fedora based Linux distributions run the following command in your terminal application:
sudo yum groupinstall 'Development Tools' && sudo yum install curl git m4 ruby texinfo bzip2-devel curl-devel expat-devel ncurses-devel zlib-devel
Homebrew: To install Homebrew for Linux, open your terminal application and paste in the command:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/linuxbrew/go/install)"
Once Linux brew is installed, you’ll need add the following 3 lines to your .bashrc or .zshrc file:
export PATH="$HOME/.linuxbrew/bin:$PATH"
export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH"
export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH"
Once everything is done, you have to open your terminal and type:
brew install node