1

不知何故,console.log('Thunderbirds are go! ')通过 yarn / node 运行不会显示表情符号,而是输出 �。

我在 Windows 终端/Git Bash 上,它本身在显示 utf-16 代理对时没有问题。直接通过 node ( node test.js) 以及通过 npm (npm run start定义为node test.js) 运行脚本都可以正确输出表情符号。但是通过纱线运行它会导致:

代码截图

为什么当我通过纱线运行它时它不会输出表情符号?有没有办法解决它?

4

0 回答 0