1

I am using Ubuntu 20.04.1 LTS on WSL2 and out of nowhere, I get this error upon starting up my shell.

Error: EIO: i/o error, scandir '/mnt/c/Users/computer'
nvm is not compatible with the npm config "prefix" option: currently set to ""
Run `npm config delete prefix` or `nvm use --delete-prefix v14.0.0 --silent` to unset it.

So, I tried looking up the EIO i/o error, but no dice. There was a solution for the npm config prefix problem, but instead I ran into the EIO i/o error again. I attempted using nvm to reinstall v14.0.0 but that just output the error lines above. I reinstalled nvm and let it install 14.0.0 but the error persisted.

I am able to use node, but trying to use npm gives the EIO error.

What do I do?

unhappycat
  • 330
  • 1
  • 3
  • 13

0 Answers0