coreybutler / coreybutler/node-windows

EPERM error when uninstalling the service

Open
#324 3 comments 4 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.9k
Forks
368
PR merge metrics
No merged PRs in 30d

Description

**Issue:**
When I run the example uninstall script I get the `EPERM: operation not permitted, unlink...` error.

Files are deleted but the service is sometimes not, and when I run the script again I get the `Uninstall was skipped...` meesage.

I am trying to run the example hello_word service and I am running the commands as the Administrator. Not sure if I should run the scripts as a different user?

**How To Reproduce:**
1. Clone node-windows repo
2. Go to example directory where the hello_word program is
3. Run `npm install`
4. Run `npm link node-windows`
5. Run install script
6. Run uninstall script
7. Error is displayed, service is not deleted

**Expected Behaviour:**
I would expect the service to be deleted without an error.

**Server:**
- OS: Windows Server 2022

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.