We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ede770 commit 3731ca8Copy full SHA for 3731ca8
src/index.ts
@@ -16,7 +16,7 @@ const preRun = () => {
16
// 初始化日志
17
logger.initialization();
18
// 不推荐使用管理员权限
19
- if (process.getuid && process.getuid() === 0) {
+ if (process.getuid && process.getuid() === 0 && !utils.isCiCdEnvironment()) {
20
logger.warn('It is not recommended to run the command as root user.');
21
}
22
// 检查node版本是否过低
0 commit comments