NPM软件包的安装失败,出现无关的软件包错误

问题描述 投票:0回答:1

我在我的节点应用程序上执行此命令:

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相关的包,但为什么安装特定的包与已经安装的包有关

node.js postgresql typescript npm package-managers
1个回答
0
投票

安装新软件包时,npm还会安装package.json缺少的软件包

在安装新软件包之前,尝试从干净状态开始。

© www.soinside.com 2019 - 2024. All rights reserved.