-
Notifications
You must be signed in to change notification settings - Fork 236
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
Ensure prefix subdirectories are created when installing #858
Ensure prefix subdirectories are created when installing #858
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for picking this up so quickly!
It still fails with some packages like gatbsy-cli:
|
Hi @DirtyF, that looks like it may be a bug internally in
Which is a JS type error, not something Volta can work around unfortunately. Confirmed that:
So my guess is it's a separate, unrelated bug within |
Right, it's easy to switch from npm@7 to npm@6 with Volta ⚡
|
Closes #857
Info
npm@7
where global installs into a custom prefix will fail if the expectedlib
subdirectory doesn't already exist ([BUG] npm does not create --prefix dir npm/cli#2012)lib
andbin
directories are created before running an install.Changes
lib
andbin
directories are also created.Tested