Hi,
Can you tell me - How to upgrade the moment.js version in angular .
Thanks
Hi,
Can you tell me - How to upgrade the moment.js version in angular .
Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sathish Kumar MPosted Jan 24, 2024, 6:40 AM
Hi,
How to upgrade the moment version to 2.29.4 under exceljs in package-lock.json file

Thanks
Sathish Kumar MPosted Jan 23, 2024, 8:15 AM
Thanks Jayraj.
But I do have one version in package-lock.js as well and that holds the correct version, so will it good to upgrade package.json version alone and give npm install.
please advise
Jayraj ChhayaPosted Jan 23, 2024, 7:53 AM
To upgrade the Moment.js version in an Angular project, you can follow these steps:
package.jsonfile. Locate thedependenciessection and find the entry for Moment.js. Change the version number to the desired version you want to upgrade to. For example:Save the changes to the
package.jsonfile.Run the following command in your project's root directory to install the updated version of Moment.js:
This command will fetch the latest version of Moment.js and update it in your project's
node_modulesdirectory.By following these steps, you should be able to successfully upgrade the Moment.js version in your Angular project.