Should I always update a next.js project?
Answered
Morelet’s Crocodile posted this in #help-forum
Morelet’s CrocodileOP
This is my first time using Next.js and I wanted to ask if it is recommended that you should update everytime. If so, how do I update my project?
Answered by Nile Crocodile
@Morelet’s Crocodile To update your Next.js project to the latest version you would run "npm install next@latest" in your terminal. You may need to also update other packages such as your react or react-dom packages.
11 Replies
well, if it's your personal project - you can!
but if it's a company project wait until it becomes real "stable"
Morelet’s CrocodileOP
@James4u (Tag me if needed) How do I update?
This is my current version: next@14.2.14
Nile Crocodile
@Morelet’s Crocodile To update your Next.js project to the latest version you would run "npm install next@latest" in your terminal. You may need to also update other packages such as your react or react-dom packages.
Answer
Morelet’s CrocodileOP
When you say id have to update those, do I just run npm i after running npm install next@latest
Nile Crocodile
To update react and react-dom, you would type “npm install react@latest” “npm install react-dom@latest”.
Npm i and npm install are the same. Npm i is short for npm install.
Morelet’s CrocodileOP
perf
that's not an answer to the original question
Morelet’s CrocodileOP
oh my apologies i thought it just marked the thread as complete