Herd : Help with Node when executing npm on Windows
Hi all. Sorry I know it's not really the place for asking that but I tried on Github but no many answers 😅 So, I'm on Windows 10 and I've decided to migrate from Laragon to Herd because of the lack of support for the latest versions of MySQL. I noticed that I couldn't get the npm commands to work via Herd. I always get this type of error:
PS D:\HERD\xxxxx\xxxxx> npm run dev
> dev
> vite
/mnt/d/HERD/xxxxx/xxxxx/node_modules/.bin/vite: 11: exec: node: not found
PS D:\HERD\xxxxx\xxxxx>
If I execute node -v it return v18.17.1.
My NVM_SYMLINK is configured to be using C:\Program Files\nodejs (wich is correct I guess because Node is installed in it).
I'm not very comfortable with this kind of configuration, so I don't know if I should do something else or make a specific configuration, as I had nothing to do with Laragon.
I've tried running nvm list and after nvm use 21.7.1 but nvm current always returns v18.17.1. Should I do anything more?
Thanks for your help. 😊
Please or to participate in this conversation.