Paul Verest
Paul Verest

Reputation: 63952

npm reports "requires (one version)' but will load (another version)"

Likely after cordove install with npm I got warning messages almost for every npm operations "requires colors@'>=0.6.0' but will load .. color"

D:\Workspaces\Enide-Studio-2014\OpenWith.js>npm i . -g
C:\Users\weibl\AppData\Roaming\npm\openwith -> C:\Users\weibl\AppData\Roaming\npm\node_modules\openwith\bin\openwith.js
npm WARN unmet dependency C:\Users\weibl\AppData\Roaming\npm\node_modules\phonegap\node_modules\cordova requires colors@'>=0.6.0' but will load
npm WARN unmet dependency C:\Users\weibl\AppData\Roaming\npm\node_modules\phonegap\node_modules\colors,
npm WARN unmet dependency which is version 0.6.0-1
npm WARN unmet dependency C:\Users\weibl\AppData\Roaming\npm\node_modules\phonegap\node_modules\node-static requires colors@'>=0.6.0' but will load
npm WARN unmet dependency C:\Users\weibl\AppData\Roaming\npm\node_modules\phonegap\node_modules\colors,
npm WARN unmet dependency which is version 0.6.0-1
[email protected] C:\Users\weibl\AppData\Roaming\npm\node_modules\openwith

How to fix such npm errors?

Upvotes: 3

Views: 887

Answers (3)

kmonsoor
kmonsoor

Reputation: 8119

At first, delete the phonegap\ folder in the location C:\Users\weibl\AppData\Roaming\npm\node_modules\. Of course, specific location will be different for others.

Then, proceed for any npm install/update command you want.

Upvotes: 0

4umfreak
4umfreak

Reputation: 111

Clean out the node-Modules folder and re-run: npm install

Upvotes: 0

Paul Verest
Paul Verest

Reputation: 63952

As Andrew hinted, solution was to

npm -g update colors

Upvotes: 1

Related Questions