skip to Main Content

We have a react app that uses 14.x.x version. Now we would like to upgrade the node version to 19.x.x. Can you please guide the steps to do that?

In package.json it is mentioned as

engines: {
    "node": ">=14.15.1"
}

2

Answers


  1. Using NPM:To update Node using NPM do the following:
    1.Open the Terminal and check your current Node version:  node -v 
    Install n package using the following command:
    npm install -g n   

    This command will install a tool called "n" which you can use to update Node easily.

    2.To update Node, run the following command in your terminal:           
    n latest
    This command will install the latest version of Node on your system.Now you can

    3.verify that your update is complete by rechecking your Node version:  
    node -v.

    You can also manually download and install the latest Node version from the official website.
    https://nodejs.org/en/download/current

    Login or Signup to reply.
  2. you can run the command npm update or npm update --save or npm update --save-dev, depending on your needs

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search