ohroy / hexo-neat

auto Minify html、js、css and make it neat
74 stars 11 forks source link

Wrong version specified for clean-css #19

Closed otakustay closed 4 years ago

otakustay commented 4 years ago

In current package.json clean-css is required >4.2.3, however the latest clean-css version is 4.2.3, install fails for the reason that no version satisfied >4.2.3 specifier.

[2020-07-09 12:04:31] npm ERR! code ETARGET
[2020-07-09 12:04:31] npm ERR! notarget No matching version found for clean-css@>4.2.3.
[2020-07-09 12:04:31] npm ERR! notarget In most cases you or one of your dependencies are requesting
[2020-07-09 12:04:31] npm ERR! notarget a package version that doesn't exist.
[2020-07-09 12:04:31] npm ERR! notarget 
[2020-07-09 12:04:31] npm ERR! notarget It was specified as a dependency of 'hexo-neat'
[2020-07-09 12:04:31] npm ERR! notarget 

This should be fixed to >=4.2.3 or ~4.2.3

ohroy commented 4 years ago

thanks! fixed in https://github.com/rozbo/hexo-neat/commit/ea9b20394feb1e614d8d967c33515e63a5a9e16c