node-libpq
node-libpq copied to clipboard
Error on installing libpq
Im trying to do simple npm install libpq and i get error
npm install libpq
> [email protected] install /tmp/nodejs/node_modules/libpq
> node-gyp rebuild
make: Entering directory '/tmp/nodejs/node_modules/libpq/build'
CXX(target) Release/obj.target/addon/src/connection.o
../src/connection.cc: In member function ‘void Connection::Emit(const char*)’:
../src/connection.cc:804:46: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]
Nan::MakeCallback(handle(), emit_f, 1, info);
^
In file included from ../src/addon.h:4:0,
from ../src/connection.cc:1:
../../nan/nan.h:929:46: note: declared here
NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
^~~~~~~~~~~~
CXX(target) Release/obj.target/addon/src/connect-async-worker.o
CXX(target) Release/obj.target/addon/src/addon.o
SOLINK_MODULE(target) Release/obj.target/addon.node
COPY Release/addon.node
make: Leaving directory '/tmp/nodejs/node_modules/libpq/build'
npm WARN saveError ENOENT: no such file or directory, open '/tmp/nodejs/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/tmp/nodejs/package.json'
npm WARN nodejs No description
npm WARN nodejs No repository field.
npm WARN nodejs No README data
npm WARN nodejs No license field.
+ [email protected]
added 3 packages in 1.885s