pg : PostgreSQL client - pure javascript & libpq with the same API. You can installing pg npm packages, there are two ways to install this module locally and globaly. -g option is specified to global. Execute the below command.
$ sudo npm install pg $ sudo npm install -g pg
If want to update the pg package execute the command as below,
$ sudo npm update pg
Update package globally,
$ npm install -g pg
$ sudo git clone https://github.com/rektide/pg.git
$ sudo npm install -g ./pg
pg@7.4.0 /usr/lib/node_modules/pg
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall pg
| Package Name | pg |
| Version | 7.4.0 |
| Description | PostgreSQL client - pure javascript & libpq with the same API |
| Released Date | 2017-11-04T19:21:49.933Z |
| Published by | brianc |
| How to Learn | https://www.npmjs.com/package/pg/tutorial |