Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

node.js

npm

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?

like image 865
Paul Verest Avatar asked Jan 25 '26 00:01

Paul Verest


1 Answers

As Andrew hinted, solution was to

npm -g update colors
like image 95
Paul Verest Avatar answered Jan 27 '26 13:01

Paul Verest