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

Issue while reading "~/.config/nvm/versions/node/v18.10.0/lib/node_modules/npmrc". EISDIR: illegal operation on a directory, read #38

Open
loqusion opened this issue Oct 13, 2022 · 2 comments

Comments

@loqusion
Copy link

loqusion commented Oct 13, 2022

Every time I run pnpm, the first thing that gets printed is the following:

WARN: Issue while reading "~/.config/nvm/versions/node/v18.10.0/lib/node_modules/npmrc". EISDIR: illegal operation on a directory, read

The issue goes away when I run npm rm -g npmrc, however I'd like to keep it installed.

As the error message implies, I am using node 18.10.0 managed by nvm.

@miqdadfwz
Copy link

Sama error here, have you successfully resolved this? @loqusion

@loqusion loqusion changed the title Issue while reading "~/.config/nvm/versions/node/v18.10.0/lib/node_modules/npmrc". EISDIR: illegal operation on a directory, read Issue while reading "~/.config/nvm/versions/node/v18.10.0/lib/node_modules/npmrc". EISDIR: illegal operation on a directory, read Feb 19, 2024
@loqusion
Copy link
Author

Installing npmrc with an npm binary not controlled by nvm seems to make the issue go away. (I recommend using the prefix config option, the npm_config_prefix env var, or the --prefix option instead of running npm with sudo.)

However, take this with a grain of salt: I don't really use npmrc or nvm any more so there may be issues beyond my limited testing.

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

2 participants