Marak / colors.js

get colors in your node.js console
https://github.com/Marak/colors.js
Other
5.16k stars 446 forks source link

compile error - colors 1.3.2 #247

Open ghost opened 5 years ago

ghost commented 5 years ago

node v9.3.0 install: 'yarn add colors' cmd; 'npm start' result: ERROR in ./node_modules/colors/lib/system/supports-colors.js Module not found: Error: Can't resolve 'os' in 'C:\Users\Tim\Documents__ngTTMv620\angular\node_modules\colors\lib\system'

DABH commented 5 years ago

Is this node or is this in the browser? Can you provide any kind of code snippet to reproduce? Looks like the type of error that happens when you try to use the module in the browser but don’t have proper config (if you google that error you see lots of similar issues in various packages).