多操作平台的git与nodejs安装

Install Git

  • Windows: Download & install msysgit.

  • Mac: Install it with Homebrew, MacPorts or installer.

  • Linux (Ubuntu, Debian): sudo apt-get install git-core

  • Linux (Fedora, Red Hat, CentOS): sudo yum install git-core

Install Node.js

The best way to install Node.js is installing with nvm.

method 1 ==> 

cURL:

$ curl https://raw.github.com/creationix/nvm/master/install.sh | sh

Once installed, restart the terminal and run the following command to install Node.js.

$ nvm install 0.10

method 2 ==> 

Wget:

$ wget -qO- https://raw.github.com/creationix/nvm/master/install.sh | sh

Once installed, restart the terminal and run the following command to install Node.js.

$ nvm install 0.10

method 3 ==>

 Or you can download the installer and install it.

Install Other NPM package

Once all the requirements are installed, you can install npm package with npm.

$ npm install -g package_name


你可能感兴趣的:(git,nodejs,npm)