Cannot Install
See original GitHub issueWhen trying to install, I see:
'pg_config' is not recognized as an internal or external command,
operable program or batch file.
gyp: Call to 'pg_config --includedir' returned exit status 1. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:424:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Path\to\project\node_modules\pg
gyp ERR! node -v v0.10.18
gyp ERR! node-gyp -v v0.10.9
gyp ERR! not ok
There is nothing added to the error when running NPM with --verbose
. I have also tried clearing the NPM cache. According to Travis CI, it passes on Linux.
Windows 8 Pro 32-bit NodeJS 0.10.18 NPM 1.3.8
Issue Analytics
- State:
- Created 9 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Unable to Install Apps or Software on Windows? Here's What ...
Unable to Install Apps or Software on Windows? Here's What to Do · 1. Reboot Your Computer · 2. Check App Installer Settings...
Read more >Can't Install Anything on Windows 10: 7 Easy Expert fixes
How do I fix Windows 10 if it can't install anything? · 1. Terminate the Windows Installer process · 2. Disable Fast Startup...
Read more >Fix problems downloading apps from the Play Store
Try the steps below if: Your downloads and app updates get stuck and won't finish. You can't download or install apps or games...
Read more >Cannot install software in Windows11 - Microsoft Community
1.It may be caused by Windows Installer not running effectively, please try the following steps: 1) Enter "services" in the search box and...
Read more >Top 6 Ways to Fix Unable to Install Programs or Software on ...
Top 6 Ways to Fix Unable to Install Programs or Software on Windows 11 · 1. Check Program Compatibility · 2. Run Installer...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I just realized that I fixed it! I had both
pg
andpg.js
installed at the same time. When I removedpg
, Knex stopped working. That’s probably another bug that I’ll open later. It said thatpgpass
was missing.To build node-postgres on Windows
libpq.dll
andpg_config.exe
are in that folder.npm install pg
I guess so. That seems to work perfectly. However, since that is an alternative fix and not really helping the problem, I will keep this open. I think that this should be fixed.