sindresorhus / ansi-escapes

ANSI escape codes for manipulating the terminal
MIT License
494 stars 44 forks source link

require() of ES modules is not supported. #30

Closed zhaocrazy closed 1 year ago

zhaocrazy commented 1 year ago

Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: xxx\node_modules_ansi-escapes@5.0.0@ansi-escapes\index.js require() of ES modules is not supported.

sindresorhus commented 1 year ago

https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c