You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scenes:
When building the project in the build server, due to the new operation of deleting empty directories in version 8.12.0, when the account permissions are insufficient, the entire automatic production build will fail and related errors will be reported.
Error: EBUSY: resource busy or locked, rmdir '/**/node_modules'
As for why there is this empty node_modules, because we have made an image cache for the project's node_modules, so at the beginning of the build task, we will first create an empty directory, and then determine whether the image exists. If it does not exist, execute pnpm install. At this time, Trigger a new version of the trap.
Expected Behavior
Compiled successfully
Which Node.js version are you using?
16.17.0
Which operating systems have you used?
macOS
Windows
Linux
If your OS is a Linux based, which one it is? (Include the version if relevant)
No response
The text was updated successfully, but these errors were encountered:
Verify latest release
pnpm version
No response
Which area(s) of pnpm are affected? (leave empty if unsure)
Operating System (Windows, MacOS, Linux)
Link to the code that reproduces this issue or a replay of the bug
No response
Reproduction steps
Describe the Bug
https://github.com/pnpm/pnpm/blob/e3b98329559f5d2c65c07310d681275159f0065a/pkg-manager/modules-cleaner/src/removeDirectDependency.ts#L44C7-L48
Scenes:
When building the project in the build server, due to the new operation of deleting empty directories in version 8.12.0, when the account permissions are insufficient, the entire automatic production build will fail and related errors will be reported.
As for why there is this empty
node_modules
, because we have made an image cache for the project'snode_modules
, so at the beginning of the build task, we will first create an empty directory, and then determine whether the image exists. If it does not exist, executepnpm install
. At this time, Trigger a new version of the trap.Expected Behavior
Compiled successfully
Which Node.js version are you using?
16.17.0
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
No response
The text was updated successfully, but these errors were encountered: