-
Notifications
You must be signed in to change notification settings - Fork 143
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
Global installs not being found in npm@7 #227
Comments
Try running This is caused by a npm@7 regression, as of now we will need to manually run |
Okay, so I pushed a new mechanism for auto-reshimming that works by wrapping the npm command and only reshimming when necessary. Instead of relying on npm @jonatan-ivanov, can you update your asdf-nodejs and test if everything is working as intended? |
@augustobmoura Thanks for looking into this. I uninstalled and installed a package, both times I see the message: |
I installed asdf using AUR and I'm still having this issue, even after reopening my terminal. issue.mp4 |
did you get this straightened out? i have the same issue. |
same here |
running into this as well, I wonder if it has something to do with the global vs local asdf nodejs version. If I have more time to investigate further, I'll reach out. |
@iloveitaly, if the global one was used to install the npm package instead of the asdf managed version, I believe you should still get the command in the path, but not managed by asdf. I start to believe that npm itself is faulty, because I tried setting asdf's nodejs to system, and I just have no way of getting any command to work. The workaround mentioned here also doesn't work for me, because that directory has no commands either. ( |
Globally installed packages can't be executed and the command fails with
command not found
.Workaround:
export PATH="$PATH:$(asdf where nodejs)/.npm/bin"
(though I guess this won't work with version change)The text was updated successfully, but these errors were encountered: