EPERM: operation not permitted, unlink
See original GitHub issueHi,
first thanks for your module bro, and i have a little issue with rimraf, I’m working on PC computer and I use the module only to delete the content on /dist folder, I’m using npm scripts to call rimraf
"scripts": {
"dev": "webpack-dev-server",
"prod": "npm run clean && cross-env NODE_ENV=production webpack -p",
"clean": "rimraf ./dist/*"
}
the issue happens when try delete a recursive folder, in my case when try delete /images folder as this folder have others folders like /logo , /background , /icons , I move all images to /images folder and run npm run prod and works perfectly, so maybe is a little issue or maybe I’m implementing wrong rimraf.
the error log is this.
> sass-example@1.0.0 clean C:\Users\userName\Documents\sass
> rimraf ./dist/*
C:\Users\userName\Documents\sass\node_modules\rimraf\bin.js:47
throw er
^
Error: EPERM: operation not permitted, unlink 'C:\Users\userName\Documents\sass\dist\images\background'
at Error (native)
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:9
Top Results From Across the Web
Error: EPERM: operation not permitted, unlink 'D:\Sources ...
After cloning the project, change the properties of the folder and change the permissions of the user (give full access to the current...
Read more >Error: EPERM: operation not permitted, unlink on npm install ...
This error is somewhat cryptic and for me it was occurring when a process was actively running. Closing running processes or perhaps just ......
Read more >Error: EPERM: operation not permitted, unlink - Reddit
Does anyone know why this happens with serverless-webpack and serverless-plugin-typescript? Both work individually but the combo just kills it ...
Read more >npm fails due to missing admin rights (operation not permitted ...
22061 error Error : EPERM: operation not permitted, unlink 'D:\a\1\s\ProjectName\node_modules\.staging\npm-7ab0bd97\man\man5\package-json.5' ...
Read more >Error: EPERM: operation not permitted, unlink 'xxx.php'
The error told you that you have no permission to delete the files. Make sure the current user has read/write permissions to the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have the same bug on Windows
Same bug on windows, have to restart vscode to get it working