Home > Mobile >  How to upgrade npm package which is inside another package?
How to upgrade npm package which is inside another package?

Time:12-01

I was using npm package named node-redshift with node v12 to connect my AWS lambda code with AWS redshift service. Now I upgraded my node to v14. node-redshift library has an open issue (Github) with node v14. On the github issue page, one solution provided was to upgrade the pg module/dependency used inside of node-redshift package. Now I am NOT able to upgrade pg package which comes along when we I do npm i node-redshift . Please help me for the same.

CodePudding user response:

Please try npm install pg@your-version

CodePudding user response:

Please try below npm install pg@your-version

  • Related