我在我的节点应用程序上执行此命令:
npm install --save-dev typescript
我收到此错误:
> [email protected] 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
打字稿与pg_config有什么关系?
我的package.json中有一些与Postgres相关的包,但为什么安装特定的包与已经安装的包有关
安装新软件包时,npm
还会安装package.json
缺少的软件包
在安装新软件包之前,尝试从干净状态开始。