Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
v2.5.3 not working with chalk v1.1.2 #5716
What version of ESLint are you using?
What did you do? Please include the actual source code causing the issue.
TypeError: chalk.stripColor is not a function
I just did a clean install of eslint v2.5.3 and it comes with chalk v1.1.3. Everything is working correctly for me. Which version of NPM are you using? If you are using NPM 3, it might be that chalk is required by some other dependency in your project and NPM is screwing up deduping. Can you also try doing a clean reinstall (delete node_modules directory completely).
I ran into this issue. It looks like the problem is that package.json isn't hard-versioned, and chalk issued a breaking change in the point-point release by removing their export of the
I fixed this by bringing in the strip-ansi dependency directly. See PR: #5731