mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
fix(fes-cli): 兼容高版本node
This commit is contained in:
parent
dd84cb737a
commit
839a933a32
@ -23,13 +23,14 @@ function createProject(config, projectName) {
|
||||
strip: 1,
|
||||
C: productDir // alias for cwd:'some-dir', also ok
|
||||
})
|
||||
);
|
||||
fs.unlinkSync(filePath);
|
||||
log.message(`项目 ${projectName} 创建完成,请执行下面的命令进行使用:`);
|
||||
log.message(`$ cd ${projectName}`);
|
||||
log.message('$ npm i');
|
||||
log.message('$ npm run dev');
|
||||
resolve();
|
||||
).on('finish', () => {
|
||||
fs.unlinkSync(filePath);
|
||||
log.message(`项目 ${projectName} 创建完成,请执行下面的命令进行使用:`);
|
||||
log.message(`$ cd ${projectName}`);
|
||||
log.message('$ npm i');
|
||||
log.message('$ npm run dev');
|
||||
resolve();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user