Next.js Discord

Discord Forum

NPM version problems with NextJS 14 on MacOS

Unanswered
Ant posted this in #help-forum
Open in Discord
AntOP
When I do npm -v I get 10.2.3
however when I do npx next info it says 6.8.0
How do I get it to point to the correct version of npm as npm run dev doesn't work and gives the following error:
npm WARN npm npm does not support Node.js v20.9.0
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11, 12.
npm WARN npm You can find the latest version at https://nodejs.org/

2 Replies

AntOP
Thanks but still not working, I uninstalled npm and reinstalled Node but it still finding an old version of npm (6.8.0), is there anything else I can try?