opencollective
opencollective copied to clipboard
npm install on opencollective-api failed if psql command doesn't exist
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
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?
Closing as per https://github.com/opencollective/opencollective/issues/5806#issuecomment-1204860790