-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting Unable to create artifactError: EPERM: operation not permitted, unlink error #128
Comments
@AbhishekMishraIH please confirm the node version on your system, you can run node -v |
It's v20.17.0 |
Same issue on:
When printing out the exception stacktrace at src/core/artifacts/generators/ArtifactGenerator.ts:89, I can see that it's coming out from rimraf: Error: EPERM: operation not permitted, unlink 'C:\Users\PDINH\OneDrive\dev\CRMSalesforce\.sfpowerscripts\ujYeS_source\src\core-crm\globalValueSets\ConstructeurEditeur.globalValueSet-meta.xml'
at unlinkSync (node:fs:1868:18)
at C:\Users\PDINH\OneDrive\dev\sfp\node_modules\.pnpm\r[email protected]\node_modules\rimraf\src\fix-eperm.ts:31:12
at method (C:\Users\PDINH\OneDrive\dev\sfp\node_modules\.pnpm\r[email protected]\node_modules\rimraf\src\retry-busy.ts:56:16)
at C:\Users\PDINH\OneDrive\dev\sfp\node_modules\.pnpm\r[email protected]\node_modules\rimraf\src\rimraf-windows.ts:176:28
at ignoreENOENTSync (C:\Users\PDINH\OneDrive\dev\sfp\node_modules\.pnpm\r[email protected]\node_modules\rimraf\src\ignore-enoent.ts:10:12)
at rimrafWindowsDirSync (C:\Users\PDINH\OneDrive\dev\sfp\node_modules\.pnpm\r[email protected]\node_modules\rimraf\src\rimraf-windows.ts:176:21)
at rimrafWindowsDirSync (C:\Users\PDINH\OneDrive\dev\sfp\node_modules\.pnpm\r[email protected]\node_modules\rimraf\src\rimraf-windows.ts:184:18)
at rimrafWindowsDirSync (C:\Users\PDINH\OneDrive\dev\sfp\node_modules\.pnpm\r[email protected]\node_modules\rimraf\src\rimraf-windows.ts:184:18)
at rimrafWindowsDirSync (C:\Users\PDINH\OneDrive\dev\sfp\node_modules\.pnpm\r[email protected]\node_modules\rimraf\src\rimraf-windows.ts:184:18)
at rimrafWindowsDirSync (C:\Users\PDINH\OneDrive\dev\sfp\node_modules\.pnpm\r[email protected]\node_modules\rimraf\src\rimraf-windows.ts:184:18) I tried bumping rimraf from ^5.0.1 to ^6.0.1 in package.json but still no luck There's also a closed related issue in rimraf's repo, which doesn't help much though: isaacs/rimraf#156 UPDATE: PR #134 should fix it |
Thanks @dinhphieu , the changes proposed has been merged. |
Describe the bug
I have new repo with only 2 new classes. One is main apex class and another one is test class. On "sfp build -v" command i am getting
'Unable to create artifactError: EPERM: operation not permitted, unlink error' error.
To Reproduce
Expected behavior
Process should completed without any error on SFP Build command
Screenshots
Platform Details (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: