Next.js Discord

Discord Forum

Should I always update a next.js project?

Answered
Morelet’s Crocodile posted this in #help-forum
Open in Discord
Avatar
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.
View full answer

11 Replies

Avatar
well, if it's your personal project - you can!
but if it's a company project wait until it becomes real "stable"
Avatar
Morelet’s CrocodileOP
@James4u (Tag me if needed) How do I update?
This is my current version: next@14.2.14
Avatar
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
Avatar
Morelet’s CrocodileOP
When you say id have to update those, do I just run npm i after running npm install next@latest
Avatar
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.
Avatar
Morelet’s CrocodileOP
perf
Avatar
that's not an answer to the original question
Avatar
Morelet’s CrocodileOP
oh my apologies i thought it just marked the thread as complete