-
Notifications
You must be signed in to change notification settings - Fork 154
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
postinstall breaks npm upgrade #226
Comments
This is a regression introduced in npm@7, the workaround for now is to remove the Related to #227 |
…run asdf reshim nodejs e.g.: ~/.asdf/installs/nodejs/15.14.0/.npm/lib/node_modules/.hooks/ see: asdf-vm/asdf-nodejs#226
This issue should be fixed in master now. I actively removed the lines of code that were creating the |
The
postinstall
script breaksnpm upgrade -g
, here is the related line of the output of the cmd:npm ERR! Invalid package name ".hooks": name cannot start with a period
Indeed, there is a
.hooks
folder:~/.asdf/installs/nodejs/15.14.0/.npm/lib/node_modules/.hooks/postinstall
(re)moving it fixes the issue.Full Output
The text was updated successfully, but these errors were encountered: