The need for a upgrade?
Steps to Upgrade
npm install -g npm-check-updates
2. Ensure that the package.json file is having a back-up or in source control like git, to be safe to make sure that we can revert back to the older one in case of troubleshooting any issues / incompatibilities in the new versions.
3. run the below command that scans the `package.json` file and then does the upgrade to the newer versions
ncu --upgrade
4. now, Install the upgraded ones using the below command
npm install
This should bring all the new version of dependencies to the project. Validate all the functions thoroughly in the local environment and then deploy to DEV / QA and once certified, production deployment can be made.
Comments
Post a Comment