Im trying to npm install pg on my ubuntu virtual machine and i got error:
> pg@1.1.0 install /usr/local/lib/node_modules/core/node_modules/pg
> node-gy
Try running the following commands and then run npm install, this will take the node's default node-gyp module. (No need to have multiple as node package already provides that)
sudo npm cache clean -f
sudo npm install -g n
sudo n 4.4.5
sudo npm install npm -g
sudo npm uninstall node-gyp -g
sudo npm uninstall node-gyp