Node can either be installed using conventional application installers or by using the command line. Command-line installation is easy on OS X and Linux, but it’s not recommended for Windows.
A.1. OS X setup
The official installer provides an easy way to install a precompiled version of Node and npm.
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
//Install Node
brew install node
A.2. Windows setup
Node can be most easily installed on Windows by using the official standalone installer. After installing, you’ll be able to run Node and npm from the Windows command line. If you want install it by source code, you may need Cygwin to run Node. Cygwin’s package selector allows you to select open source software that will be installed on your system.
devel git
devel make
devel openssl-devel
devel pkg-config
devel zlib-devel
net inetutils
python python
web wget
Once you’ve selected the packages, click Next. run Cygwin and compile Node.
A.3. Linux setup
there are other installation instructions on GitHub:
sudo apt-get install build-essential libssl-dev
sudo yum groupinstall 'Development Tools'
sudo yum install openssl-devel
Compiling Node involves the same steps on all operating systems.
>mkdir tmp
>cd tmp
>curl -O http://nodejs.org/dist/node-latest.tar.gz
>tar zxvf node-latest.tar.gz
>ls
>cd node-v*
>./configure
>make
>sudo make install
>node -v
if you run Cygwin On Windows 7 or Vista,it maybe have errors。this is because of Cygwin.Just quit Cygwin enviroment,run ash.exe(c:\cygwin\bin\ash.exe), and enter /bin/rebaseall -v。then restart your computer.
You should now have Node on your machine!
Using the Node Package Manager
The Node stack is composed of globally available functionality, core modules, and community-created modules.
git clone git://github.com/isaacs/npm.git
cd npm
sudo make install
Searching for packages
npm search xml generator
or you can use http://search.npmjs.org/ to search the info. The npm search website provides useful statistics on module popularity.
> npm install express
//installing the express package globally:
>npm install -g express
//or
>sudo npm install -g express
>npm docs express
//explore the local express source code
>npm explore express
//explore the global express source code
>npm -g explore express
相关推荐
安装mumax3最全教程
mysql-community-server-5.7.28-1.el7.x86_64.rpm,用于centos7中rpm方式安裝mysql5.7
openedx 运行手册
Node.js 是一个基于 Chrome V8 引擎的 JavaScript 运行环境。Node.js 使用了一个事件驱动、非阻塞式 I/O 的模型,使其轻量又高效
节点红色贡献功能节点红色功能节点,具有从npm安装和使用软件包的能力相容性节点红色版本> 1.0安装从您的节点红色目录npm install node-red-contrib-function-npm用法function-npm节点的行为类似于普通功能节点,...
Oracle Solaris 11.3 Installing Oracle Solaris 11.3 Systems-300
Oracle Solaris 11.2 Installing Oracle Solaris 11.2 Systems-270
Oracle Solaris 11.1 Installing Oracle Solaris11.1Systems-240
Oracle Solaris 11 Installing Oracle Solaris 11 Systems-204
including Penetration Tester's Open Source Toolkit (ISBN: 1-5974490210), Stealing the Network: How to Own an Identity (ISBN: 1597490067), InfoSec Career Hacking (ISBN: 1597490113), and OS X for ...
In the Home menu of MATLAB, click Add-Ons, and search for Climate Data Toolbox. Click "Add from GitHub" and that's all you need to do. Installing this way is easy and will provide the most up-to-date ...
Syngress - How to Cheat at Installing, Configuring and Troubleshooting Active Directory and DNS.pdf
Now it's time to compile and install Asterisk. Let's change to the directory which contains the Asterisk source code. 从源代码安装 asterisk sipserver VOIP RTP pjsip webrtc
此包是AR9331主控的Openwrt系统上运行的node所需要的两个包(uclibcxx_0.2.4-1_ar71xx及node_v0.10.17-2_ar71xx)...Installing node (v0.10.17-2) to root... Configuring node. root@OpenWrt:/tmp# node -v v0.10.17
Part 5 - Building, Installing, and Testing a WDF Driver Chapter 19 - How to Build WDF Drivers Chapter 20 - How to Install WDF Drivers Chapter 21 - Tools for Testing WDF Drivers Chapter 22 - ...
2 Set the ANT_HOME environment variable to [ant_home] and add ANT_HOME\bin (or ANT_HOME/bin) to the PATH environment variable Installing Maven ---------------- 1 Download Maven from ...
2 Set the ANT_HOME environment variable to [ant_home] and add ANT_HOME\bin (or ANT_HOME/bin) to the PATH environment variable Installing Maven ---------------- 1 Download Maven from ...
2 Set the ANT_HOME environment variable to [ant_home] and add ANT_HOME\bin (or ANT_HOME/bin) to the PATH environment variable Installing Maven ---------------- 1 Download Maven from ...
2 Set the ANT_HOME environment variable to [ant_home] and add ANT_HOME\bin (or ANT_HOME/bin) to the PATH environment variable Installing Maven ---------------- 1 Download Maven from ...
2 Set the ANT_HOME environment variable to [ant_home] and add ANT_HOME\bin (or ANT_HOME/bin) to the PATH environment variable Installing Maven ---------------- 1 Download Maven from ...