首页 > 数据库技术 > 详细

nodejs 安装 postgresql module

时间:2014-02-09 16:23:31      阅读:495      评论:0      收藏:0      [点我收藏+]

# npm -gd install node-gyp

# export PATH=$PATH:/usr/local/pgsql/bin

# npm -gd install pg

 

for test:

# export NODE_PATH=/usr/local/nodejs/lib/node_modules

# vi sender.js

var pg = require(‘pg‘);

console.log(‘pg has installed successfully‘);

# node sender

if no error, means it works ok.

nodejs 安装 postgresql module

原文:http://www.cnblogs.com/kylindai/p/3541179.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!