Skip to content
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

Incompatible with npm v7 #32

Open
AdamVig opened this issue Apr 26, 2021 · 0 comments
Open

Incompatible with npm v7 #32

AdamVig opened this issue Apr 26, 2021 · 0 comments

Comments

@AdamVig
Copy link

AdamVig commented Apr 26, 2021

According to npm/cli#2692, the node_modules/.hooks functionality used by this package is no longer supported in npm v7. For me, this manifests in the following way:

> npm update -g
npm ERR! code EINVALIDPACKAGENAME
npm ERR! Invalid package name ".hooks": name cannot start with a period

Removing this plugin from my local environment fixed this error.

I wanted to open this issue to discuss whether this plugin could be made compatible with npm v7. If not, I would be happy to make a pull request that shows a warning when npm v7 is detected.

AdamVig added a commit to AdamVig/dotfiles that referenced this issue Apr 26, 2021
This plugin is incompatible with npm v7 and was breaking `npm update
-g`. See nodenv/nodenv-package-rehash#32.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant