2014-06-08 8 views
2

우분투 13.10에서 nodejs 응용 프로그램을 배포하려고합니다. 나는 나의 로컬 맥 (좋은 일)에서 그것을 테스트했다. 난이 오류가 발생했습니다 후ORMError NO_SUPPORT : 연결 프로토콜이 지원되지 않습니다. Postgres 용 데이터베이스 드라이버를 설치 했습니까?

내가 npm install pg를 설치했지만 작동하지 않았다 : 참고로

[ORMError NO_SUPPORT: Connection protocol not supported - have you installed the database driver for postgres?] 
at Object.exports.connect (/home/ubuntu/node_modules/orm/lib/ORM.js:138:21) 
at Object.module.exports (/home/ubuntu/node_modules/orm/lib/Express.js:12:6) 
at Object.exports.express (/home/ubuntu/node_modules/orm/lib/ORM.js:39:30) 
at Object.<anonymous> (/home/ubuntu/www/sher/nodejs/app.js:30:13) 
at Module._compile (module.js:456:26) 
at Object.Module._extensions..js (module.js:474:10) 
at Module.load (module.js:356:32) 
at Function.Module._load (module.js:312:12) 
at Module.require (module.js:364:17) 
at require (module.js:380:17) 
error: Forever detected script exited with code: 8 

: 내 우분투 서버에서 실행하려고 할 때

그러나, 나는이 있어요.

또한 postgresql9.1을 sudo apt-get install build-essential postgresql-9.1 postgresql-server-dev-9.1 libxml2-dev libproj-dev libjson0-dev xsltproc docbook-xsl docbook-mathml으로 꾸며 냈습니다.

누구나 무슨 일이 일어날 지 제안 할 수 있습니까?

감사합니다.

{ 
    "name": "nodejs", 
    "version": "0.0.1", 
    "private": true, 
    "scripts": { 
    "start": "node ./bin/www" 
}, 
    "dependencies": { 
    "express": "~4.2.0", 
    "static-favicon": "~1.0.0", 
    "morgan": "~1.0.0", 
    "cookie-parser": "~1.0.1", 
    "body-parser": "~1.0.0", 
    "debug": "~0.7.4", 
    "jade": "~1.3.0" 
    } 
} 

답변

1

방금 ​​모든 패키지와 모듈을 하나씩 다시 설치했습니다. 문제가 해결 된 것 같습니다.

+0

같은 시스템에서 노드 버전을 6/7/8 사이로 업그레이드 할 때 발생하는 orm을 사용하는 모든 프로젝트에서이 문제가 발생했습니다. 각 프로젝트에있는 모든 패키지를 다시 설치하면 문제가 해결됩니다. 거기에 바이너리 수준 호환성 문제가 있다고 가정 해 주셔서 감사합니다. –