fix: error: ENOTEMPTY: directory not empty (#6660)

This commit is contained in:
chenos 2025-04-14 13:59:19 +08:00 committed by GitHub
parent 659e98039a
commit 72828200b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -461,7 +461,7 @@ exports.initEnv = function initEnv() {
fs.mkdirpSync(dirname(process.env.SOCKET_PATH), { force: true, recursive: true });
fs.mkdirpSync(process.env.PM2_HOME, { force: true, recursive: true });
const pkgDir = resolve(process.cwd(), 'storage/plugins', '@nocobase/plugin-multi-app-manager');
fs.existsSync(pkgDir) && fs.rmdirSync(pkgDir, { force: true });
fs.existsSync(pkgDir) && fs.rmdirSync(pkgDir, { recursive: true, force: true });
};
exports.generatePlugins = function () {