const chalk = require('chalk');console.log(chalk.red('hello world')) 转载于:https://www.cnblogs.com/zhangshuda/p/7640243.html