nodejs colors 必须要加--color参数吗 ?

index.js

var colors = require('colors');
console.log('hello'.green); 

必须
node index.js --color 才出现颜色~

node index.js 没有颜色 ~

https://github.com/Marak/colors.js
也没有提到 --color这个参数
为什么……

阅读 5k
1 个回答

终端的问题 升了下级 就好了~···

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题