You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sama error here, have you successfully resolved this? @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
Installing npmrc with an npm binary not controlled by nvmseems 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.
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.
The text was updated successfully, but these errors were encountered: