In the dependencies, I changed pg verson from 3.0.1 to 3.0.3. For some reason when I ran npm install, an error would return saying no such version 3.0.1 for pg module. After changing, npm install ran smoothly