mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-23 18:50:06 +08:00
fix :fix npm start when memory more than 8192 (#48462)
Co-authored-by: lijianan <574980606@qq.com>
This commit is contained in:
parent
9517942fac
commit
9ba577f3df
@ -7,8 +7,8 @@ const totalMemory = Math.floor(os.totalmem() / (1024 * 1024));
|
||||
if (totalMemory <= 8192) {
|
||||
// setting NODE_OPTIONS
|
||||
process.env.NODE_OPTIONS = '--max-old-space-size=4096';
|
||||
// Execute project startup command
|
||||
const args: string[] = process.argv.slice(2);
|
||||
|
||||
childProcess.execSync(` ${args.join(' ')}`, { stdio: 'inherit' });
|
||||
}
|
||||
// Execute project startup command
|
||||
const args: string[] = process.argv.slice(2);
|
||||
|
||||
childProcess.execSync(` ${args.join(' ')}`, { stdio: 'inherit' });
|
||||
|
Loading…
Reference in New Issue
Block a user