Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

pkg: nodejs: update fails on Windows, unable to delete old version #73

Open
jokeyrhyme opened this issue May 26, 2018 · 3 comments
Open
Labels
bug Something isn't working

Comments

@jokeyrhyme
Copy link
Owner

No description provided.

@jokeyrhyme jokeyrhyme added the bug Something isn't working label May 26, 2018
@jokeyrhyme
Copy link
Owner Author

...\.local\node-v10.2.1-win-x64\README.md
unable to recursively delete directory C:\Users\Ron\.local\node: Os { code: 3, kind: NotFound, message: "The system cannot find the path specified." }
error: pkg: nodejs: unable to install Node.js: Os { code: 5, kind: PermissionDenied, message: "Access is denied." }
'node' is not recognized as an internal or external command,
operable program or batch file.
deleted "C:\\Users\\Ron\\.local/node\\npm"
deleted "C:\\Users\\Ron\\.local/node\\npm.cmd"
deleted "C:\\Users\\Ron\\.local/node\\npx"
deleted "C:\\Users\\Ron\\.local/node\\npx.cmd"

@jokeyrhyme
Copy link
Owner Author

Seems to be caused by sometimes running updates with Administrator permissions
Ideally, we should only execute with these permissions when necessary, perhaps even prompt for them

@jokeyrhyme
Copy link
Owner Author

Seems most reliable when /.local/node is manually deleted (e.g. with Windows Explorer) prior to running sync or update

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant