-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mise install
fails to install missing npm:...
package
#2174
Comments
Same as me. |
The same issue occurred for me with other backends, at least with |
Also experiencing this with some specific npm libs From this list https://github.com/bellini666/dotfiles/blob/master/mise/config.toml#L44, I'm experiencing issues with:
|
I have the same issue. And after looking into it, mise adds to A workaround is to add the mise It would be nice to also improve the error message here, as it's misleading that people would interpret the error message as if the path is not found, but it actually says npm is not found! |
Looks like this is an issue across all experimental backends? Probable duplicates: |
Ok, I had some time for this today. I think ultimately it comes down to the the Line 73 in 6730416
Adding |
Describe the bug
When the active configuration file lists an npm package that isn't installed,
mise install
fails with an error:To Reproduce
mise install
Expected behavior
The
npm
packagetldr
is installed and thetldr
command works.mise doctor
outputAdditional context
I thought this was related to #2154, but I see that was fixed (and released) and I can still reproduce.
Also weirdly, the command that's listed as failing (
npm install -g tldr@3.4.0 --prefix /Users/david/.local/share/mise/installs/npm-tldr/3.4.0
) works if run directly. I've confirmed the/Users/david/.local/share/mise/installs/npm-tldr
directory exists, but is empty.The text was updated successfully, but these errors were encountered: