Install Node.js

http://www.androidren.com/index.php?qa=264&qa_1=install-node-js

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

cURL:


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

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

Or you can download the installer and
install it.

如果所在服务器没有翻墙,那么可能安装过程会比较痛苦,你懂的。

所以可以先下载安装文件install.sh,然后再上传到服务器,添加执行权限。

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

时间: 2024-10-28 16:34:06

Install Node.js的相关文章

How to install Node.js on Linux

How to install Node.js on Linux Posted on November 13, 2015 by Dan Nanni Leave a comment Question: How can I install Node.js on [insert your Linux distro]? Node.js is a server-side software platform built on Google's V8 JavaScript engine. Node.js has

[译]How to Install Node.js on Ubuntu 14.04 如何在ubuntu14.04上安装node.js

**原文链接为** [http://www.hostingadvice.com/how-to/install-nodejs-ubuntu-14-04/](http://www.hostingadvice.com/how-to/install-nodejs-ubuntu-14-04/) **由作者Jacob Nicholson 发表于October 27, 2015** **在此对作者表示感谢** Node.js作为一个基于JavaScript的开发平台,正变得越来越流行.许多开发人员都想构建通过

How to Install Node.js

Ubuntu Install the dependencies: sudo apt-get install g++ curl libssl-dev apache2-utils sudo apt-get install git-core Run the following commands: git clone git://github.com/ry/node.gitcd node./configuremakesudo make install You can check it worked wi

Docker 生成Node.js web app(含端口映射)

1.新建目录src,并进入src目录 [[email protected] Documents]$ mkdir src [[email protected] Documents]$ cd src/ 2.创建package.json和index.js文件,文件内容如下: package.json [[email protected] Documents]$ mkdir src [[email protected] Documents]$ cd src/ [[email protected] src

WebSockets in Node.js for Windows 7

NOTE:  This is an update of my previous post on configuring WebSockets on a Windows 7 installation of Node.js. One of the lesser known features of HTML5 are WebSockets.  This is mainly due to a lack of browser support and standardization.  Still, the

A chatroom for all! Part 1 - Introduction to Node.js(转发)

项目组用到了 Node.js,发现下面这篇文章不错.转发一下.原文地址:<原文>. ------------------------------------------- A chatroom for all! Part 1 - Introduction to Node.js Rami Sayar 4 Sep 2014 11:00 AM 7 This node.js tutorial series will help you build a node.js powered real-time

npm install 报错 [email&#160;protected] install: `node install.js`

$ npm install > [email protected] install F:\Study\Vue\VueStudy\03\VueTest\node_module s\phantomjs-prebuilt> node install.js 'node' ????????????????????????е?????????????????npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_mod

[email&#160;protected] install: `node install.js`

在用vue-cli构建项目时,npm install 安装包的时候报错了. 错误信息: npm ERR! Failed at the [email protected] install script 'node install.js'.npm ERR! Make sure you have the latest version of node.js and npm installed. 依赖包[email protected]安装失败 跟网络有关系 解决方案: 1.搭梯子(vpn)安装(速度奇慢

[Node.js] npm init &amp;&amp; npm install

npm init: For create package.json file which will recode the dependence. npm install: You can also write like: npm i This is a shortcut way to write npm install. For example. we want to install undersocre.js npm install -S underscore The way '-S' wor