I have been getting
npm ERR! Error: EACCES: permission denied, rename errors when doing
npm install on a project using Windows Subsystem for Linux (WSL) with Visual Studio Code (VS Code) open on the project.
I am running the extension
Remote - WSL.
If I close VS Code and retry the install, then I get no errors.
The following comment on an open Issue on WSL appears to describe my issue: