NodeJS 安装Express

nodejs是服务器端js脚本语言, express是nodejs的web框架。

如果想要用NodeJS开发web应用,那么express是不错的选择。

 

express安装如下:

root@mdev node-v0.6.4 # npm install express -gd

 

....

npm info linkStuff [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm info build /usr/local/lib/node_modules/express
npm info linkStuff [email protected]
/usr/local/bin/express -> /usr/local/lib/node_modules/express/bin/express
npm info install [email protected]
npm info postinstall [email protected]
[email protected] /usr/local/lib/node_modules/express 
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
npm info ok


检查安装是否成功

express -v

 

显示如下,则说明安装成功!

root@mdev node-v0.6.4 # express -v
2.5.8


 

GO ON!

你可能感兴趣的:(服务器,脚本,express,Build,语言,web框架)