Ubuntu下安装Nodejs, Nide

From: http://baiyejianxin.iteye.com/blog/1399326


sudo apt-get install python-software-properties

sudo add-apt-repository ppa:chris-lea/node.js

sudo apt-get update

sudo apt-get install nodejs


node --version

 

安装curl

sudo apt-get install curl

 

安装npm

curl http://npmjs.org/install.sh | sudo sh     # puncha: 再我的Ubuntu 12.04下,要改成sudo bash

nmp -v

 

安装Nide(Nodejs的IDE工具)

sudo npm install –g nide

 

创建工程

进入要创建工程的目录

执行  nide init 

 

此时会提示如下信息

created '.nide' directory

Added '.nide' directory to .gitignore

Added '.nide' direcotry to .npmignore

Nide running at http://localhost:8123

 

 

提示Nide已经启动,并坚挺8123端口。

此时在浏览器会自动打开Nide 工具的页面,根据提示创建工程,添加代码就可以了。

 

编辑好代码好

是用node ***.js来启动nodejs项目


原文地址:https://www.cnblogs.com/puncha/p/3876919.html