node.js - graybull's Blog

搭建eclipse的node.js开发与调试环境

   操作系统为ubuntu12.04;已经安装了node.js, express。

安装jdk1.7

参考http://graybull.is-programmer.com/posts/39856.html

安装eclipse

从eclipse官网下载 http://www.eclipse.org/downloads

安装插件

  • node.js插件 -- nodeclipse

      更新地址:http://www.nodeclipse.org/updates

  • javascript编辑插件 -- VJET

   更新地址:http://download.eclipse.org/vjet/updates-0.10

  • google V8插件

   更新地址:http://chromedevtools.googlecode.com/svn/update/dev/

  • 安装方法

     打开eclipse -> help -> install new software... -> add -> 输入更新地址 -> 安装插件

node.js示例项目

 

 

Linux安装node.js, express

1)Go to http://nodejs.org/download/, and download the linux binaries: node-v0.10.0-linux-x64.tar.gz. You may download newer version of it.

2)unpack the package to /usr/local/node

#tar xzvf node-v0.10.0-linux-x64.tar.gz

3)set up evironment

# vi /etc/profile

add the following content into the file's end:

export NODE_HOME=/usr/local/node/node-v0.10.0-linux-x64
export PATH=$PATH:$NODE_HOME/bin
export NODE_PATH=$NODE_HOME/lib/node_modules

save it then source it with:

#source /etc/profile

4) you can check it's version with:

#node -v

5) install express globally


# npm install -g express

After installation, you will find the express dir in: /usr/local/node/node-v0.10.0-linux-x64/lib/node_modules




Host by is-Programmer.com | Power by Chito 1.3.3 beta | © 2007 LinuxGem | Design by Matthew "Agent Spork" McGee