Node.js npm install pg-sync错误

时间:2014-06-30 15:16:54

标签: node.js install pg

我会为Node.js安装pg-sync,但它会显示以下错误:

peter@loki ~/node $ npm install pg-sync

> pg-sync@0.1.0 install /home/peter/node/node_modules/pg-sync
> node-gyp rebuild || (exit 0)

make: Entering directory `/home/peter/node/node_modules/pg-sync/build'
  CXX(target) Release/obj.target/pgsync/src/pgsync.o
../src/pgsync.cc:14:1: error: overloaded function with no contextual type information
make: *** [Release/obj.target/pgsync/src/pgsync.o] Error 1
make: Leaving directory `/home/peter/node/node_modules/pg-sync/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib64/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:809:12)
gyp ERR! System Linux 3.13.4-gentoo
gyp ERR! command "node" "/usr/lib64/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/peter/node/node_modules/pg-sync
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.13.1
gyp ERR! not ok
pg-sync@0.1.0 node_modules/pg-sync
└── nan@0.8.0

我该如何解决这个问题?我测试删除.node_gyp并将nodejs更新为实际版本,但它显示相同的错误。

修改
错误已修复,请显示:Issue #1 Github

0 个答案:

没有答案