Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing module => 'color-convert' #214

Closed
ORESoftware opened this issue Oct 15, 2017 · 2 comments
Closed

missing module => 'color-convert' #214

ORESoftware opened this issue Oct 15, 2017 · 2 comments

Comments

@ORESoftware
Copy link

ORESoftware commented Oct 15, 2017

On occasion I after a clean NPM install, I see:

 Error: Cannot find module 'color-convert'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman-debug/node_modules/ansi-styles/index.js:2:22)

when I run npm la color-convert I see:

└─┬ chalk@2.1.0
  │ Terminal string styling done right
  │ git+https://github.com/chalk/chalk.git
  │ https://github.com/chalk/chalk#readme
  └─┬ ansi-styles@3.2.0
    │ ANSI escape codes for styling strings in the terminal
    │ git+https://github.com/chalk/ansi-styles.git
    │ https://github.com/chalk/ansi-styles#readme
    └── UNMET DEPENDENCY color-convert@^1.9.0

npm ERR! missing: color-convert@^1.9.0, required by ansi-styles@3.2.0

I think maybe chalk should talk to ansi-styles and tell ansi-styles to fix their ship?

@sindresorhus
Copy link
Member

This has nothing to do with Chalk. It's an issue with npm. Make sure you're on the latest Node.js and npm version. Use the npm issue tracker for support.

@mizzao
Copy link

mizzao commented Jan 18, 2018

@ORESoftware I just got this same error after installing something with chalk as a dependency. It's strange because everything else about the build was working fine so far. Did you end up figuring out what was causing it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants