opencollective icon indicating copy to clipboard operation
opencollective copied to clipboard

npm install on opencollective-api failed if psql command doesn't exist

Open scenaristeur opened this issue 3 years ago • 1 comments

npm install on opencollective-api failed if psql command doesn't exist. Postgresql-client should be installed first

~/dev/opencollective/api$ npm install
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Deprecated due to CVE-2021-21366 resolved in 0.5.0
[...]
npm WARN deprecated [email protected]: https://about.codecov.io/blog/codecov-uploader-deprecation-plan/
npm WARN deprecated [email protected]: Package discontinued. Please find an alternative source for your EU VAT rates.

> postinstall
> ./scripts/postinstall.sh

𐄂 psql command doesn't exist. Make sure you have PostgreSQL installed.

See: https://github.com/opencollective/opencollective-api/blob/main/docs/postgres.md

npm ERR! code 1
npm ERR! path /home/smag/dev/opencollective/api
npm ERR! command failed
npm ERR! command sh -c ./scripts/postinstall.sh

scenaristeur avatar Aug 02 '22 07:08 scenaristeur

Our README states that before running npm install, you should Make sure you have a PostgreSQL database available.

Isn't psql (aka. postgres client) always installed along postgres?

Betree avatar Aug 04 '22 07:08 Betree

Closing as per https://github.com/opencollective/opencollective/issues/5806#issuecomment-1204860790

Betree avatar Dec 08 '22 12:12 Betree