【发布时间】:2019-03-26 09:03:26
【问题描述】:
我在我的节点应用程序上执行此命令:
npm install --save-dev typescript
我得到这个错误:
> libpq@1.8.8 install /Users/prmph/Dropbox/Repositories/Alt/node_modules/libpq
> node-gyp rebuild
/bin/sh: pg_config: command not found
gyp: Call to 'pg_config --libdir' returned exit status 127 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
typescript 与 pg_config 有什么关系?
我的 package.json 中确实有一些与 Postgres 相关的包,但为什么安装特定包与已安装的包有任何关系
【问题讨论】:
-
您介意分享更多您的
package.json文件吗?
标签: node.js postgresql typescript npm package-managers