Next.js Discord

Discord Forum

Should I always update a next.js project?

Answered
DylanDev posted this in #help-forum
Open in Discord
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
@DylanDev 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

well, if it's your personal project - you can!
but if it's a company project wait until it becomes real "stable"
@James4u How do I update?
This is my current version: next@14.2.14
Nile Crocodile
@DylanDev 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
@DylanDev 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.
perf
that's not an answer to the original question
@joulev that's not an answer to the original question
oh my apologies i thought it just marked the thread as complete