nodejs 安裝 postgresql module

# npm -gd install node-gypnode

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

# npm -gd install pgnpm

 

for test:ui

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

# vi sender.jsconsole

var pg = require('pg');test

console.log('pg has installed successfully');require

# node senderejs

if no error, means it works ok.module

相關文章
相關標籤/搜索