nvm-windows
nvm-windows copied to clipboard
getting Access Denied at os.Rename()
os.Rename() of node_modules/npm on Node version installs throws Access Denied (win 7) -- seems to be this issue https://github.com/coreybutler/nvm-windows/issues/302 and that seems to be caused by a golang behavior change in os.Rename() described in https://github.com/golang/go/issues/14527 ...fixed by using copy package instead
I have two issues with this:
- It leaves an orphan file in the temp directory.
- The added dependency on a new external lib (trying to minimize them).
Copying is fine, but it would be better to use the standard features and cleanup after the copy is complete.