You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's an error message spit out by node-gyp trying to build the bindings to libpq. They don't work on windows. node-postgres will still work, but you have to use the pure JavaScript bindings.
The install is actually successful, it just shows the errors from the build failure.
thank you. Indeed the pure javascript works!
Envoyé depuis un mobile Samsung
a écrit :
That's an error message spit out by node-gyp trying to build the bindings to libpq. They don't work on windows. node-postgres will still work, but you have to use the pure JavaScript bindings.
The install is actually successful, it just shows the errors from the build failure.
Reply to this email directly or view it on GitHub: #146 (comment)
D:\nodejs>npm install pg
npm http GET https://registry.npmjs.org/pg
npm http 304 https://registry.npmjs.org/pg
npm http GET https://registry.npmjs.org/generic-pool/1.0.9
npm http 304 https://registry.npmjs.org/generic-pool/1.0.9
D:\nodejs\node_modules\pg>node "C:\Program Files\nodejs\node_modules\npm\bin\nod
e-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild
binding.cc
c:\users\shouk.node-gyp\0.8.1\src\node_object_wrap.h(57): warning C4251: 'node
::ObjectWrap::handle_' : class 'v8::Persistent' nécessite une interface DLL
pour être utilisé(e) par les clients de class 'node::ObjectWrap' [D:\nodejs\nod
e_modules\pg\build\binding.vcxproj]
with
[
T=v8::Object
]
..\src\binding.cc(117): warning C4800: 'int' : valeur forcée à la valeur boolée
nne 'true' ou 'false' (avertissement sur les performances) [D:\nodejs\node_modu
les\pg\build\binding.vcxproj]
..\src\binding.cc(387): error C2065: 'EV_ERROR' : identificateur non déclaré [D
:\nodejs\node_modules\pg\build\binding.vcxproj]
..\src\binding.cc(398): error C2065: 'EV_READ' : identificateur non déclaré [D:
\nodejs\node_modules\pg\build\binding.vcxproj]
..\src\binding.cc(437): error C2065: 'EV_WRITE' : identificateur non déclaré [D
:\nodejs\node_modules\pg\build\binding.vcxproj]
gyp ERR! rebuild error Error:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\msb uild.exe
failed with exit code: 1gyp ERR! rebuild error at ChildProcess.onExit (C:\Program Files\nodejs\node_
modules\npm\node_modules\node-gyp\lib\build.js:214:23)
gyp ERR! rebuild error at ChildProcess.EventEmitter.emit (events.js:91:17)
gyp ERR! rebuild error at Process._handle.onexit (child_process.js:674:10)
gyp ERR! not ok
pg@0.8.0 node_modules\pg
└── generic-pool@1.0.9
D:\nodejs>
The text was updated successfully, but these errors were encountered: