Open DragonOsman opened 4 months ago
If you're running in a Node 16 environment, you'll have to use Vite 4.x; Vite 5.x does not support Node 16 anymore.
https://vitejs.dev/blog/announcing-vite5#node-js-support
I don't think you should run into any problems downgrading to vite 4.x
If you specify just the major version, your installer should resolve the minor and patch versions to latest, ie, npm i vite@4
@DragonOsman can we close this issue?
I have a MERN app I'm trying to deploy to Glitch, which only supports Node up to version 16.x. I want to switch from CRA to Vite in my project, but I'm having dependency resolution issues in NPM.
Here are the messages with the commands I ran:
Then, after that:
So, with that context, I guess my question should be: what exact versions of each package should I use? I want to avoid running the command with the `--legacy-peer-deps" flag if possible.
Sorry if this isn't a question to ask here. And thanks in advance for any help or advice.
Edit to further clarify: I'm using Windows 10, and I installed NVM for Windows to be able to switch between the latest LTS version of Node and version 16.