I’d approach this task (updating dependencies) in two ways, @dannyissocool . In answering your direct question, the fix may not improve the situation, so I don’t necessarily recommend doing this, but the beauty of git is that you can revert back to the current setup if the new one works worse and you don’t feel like debugging it.
-
This is one way to do what you asked: Update All Node Packages to Latest | by Zack Hoherchak | Subjective Developer | Medium .
-
To make Netlify use that updated list, once you can build locally with that updated list you’ve created locally, you’ll need to commit your package.json and package-lock.json to the repo so we’ll try to build with it.
This is also some good reading as you mess with dependency versions, around syncing your netlify and local versions of things like node and npm: [Support Guide] Debugging Netlify site builds - this will set you up for better future success around building here in general