Open Mavv3006 opened 3 weeks ago
FYI: After the installation of Herd 1.7.1 (update from 1.6.1) nvm has been installed on my machine.
note: This is not a resolution of this issue, but rather a notice to find the root cause.
Upgraded to 1.7.1 (Herd Pro) and Install NVM is still not working.
I have the same problem except I already have an nvm on my machines, I unchecked the "install node using nvm" when installing herd, but now herd says unknown node version for all sites and the button to install does nothing.
Temporarily remove the contents of your ~/.zshrc
(or similar) file if you've customised it.
I've had this exact issue ever since I first started to use Herd. However, I just noticed this in the Herd documentation (https://herd.laravel.com/docs/1/advanced-usage/node-versions):
Herd parses command output to determine your current Node.js version. If it can't parse the output because there is output that it doesn't understand, or you are using an unsupported shell, it displays Unknown for your node version in the sites list. Herd is an opinionated development environment that relies on bash or zsh and other shells lead to errors.
It made me think — perhaps my ~/.zshrc
file is causing the output to be unreadable to Herd. I deleted the contents of the ~/.zshrc
file and the Install NVM button worked immediately!
Herd adds a couple of lines to the ~/.zshrc
file, so I just pasted the original contents above it.
Similar issue with v1.8.0 on Windows - when clicking the button it flickers shortly showing the installed versions but then the button returns.
I've updated my Herd install to v1.8.0 and the Node install works now. Thanks!
Platform
macOS
Operating system version
macOS Sonoma 14.5
System architecture
ARM64 (M1, M2, etc)
Herd Version
1.6.1
PHP Version
8.3
Bug description
Currently I do not have
nvm
installed because I wanted to use the nvm which comes with the Herd installation.But when opening the Node menu in Herd the install nvm button appears. But after clicking it, it does nothing
Also refer to https://github.com/beyondcode/herd-community/discussions/492
Steps to reproduce
prerequisites:
steps:
Relevant log output
No response