nDmitry / grunt-autoprefixer

Parse CSS and add vendor-prefixed CSS properties using the Can I Use database. Based on Autoprefixer.
MIT License
795 stars 60 forks source link

Error: No compatible version found: caniuse-db@'^1.0.20140710' #53

Closed Turek closed 10 years ago

Turek commented 10 years ago

This seems to be some other issue, but only happens when I want to install grunt-autoprefixer, I already have different working version of caniuse-db. grunt-autoprefixer forces some version that doesn't exist I guess.

This is what I am gerring when trying to install it on Windows:

npm install grunt-autoprefixer --save-dev

npm http GET https://registry.npmjs.org/grunt-autoprefixer
npm http 304 https://registry.npmjs.org/grunt-autoprefixer
npm http GET https://registry.npmjs.org/diff
npm http GET https://registry.npmjs.org/autoprefixer
npm http GET https://registry.npmjs.org/chalk
npm http 304 https://registry.npmjs.org/diff
npm http 304 https://registry.npmjs.org/chalk
npm http 304 https://registry.npmjs.org/autoprefixer
npm http GET https://registry.npmjs.org/has-color
npm http GET https://registry.npmjs.org/ansi-styles
npm http GET https://registry.npmjs.org/strip-ansi
npm http 304 https://registry.npmjs.org/has-color
npm http 304 https://registry.npmjs.org/strip-ansi
npm http 304 https://registry.npmjs.org/ansi-styles
npm http GET https://registry.npmjs.org/caniuse-db
npm http GET https://registry.npmjs.org/fs-extra
npm http GET https://registry.npmjs.org/postcss
npm http 304 https://registry.npmjs.org/postcss
npm http 304 https://registry.npmjs.org/fs-extra
npm http 304 https://registry.npmjs.org/caniuse-db
npm ERR! Error: No compatible version found: caniuse-db@'^1.0.20140710'
npm ERR! Valid install targets:
npm ERR! ["1.0.20140224","1.0.20140225","1.0.20140226","1.0.20140301","1.0.20140
302","1.0.20140303","1.0.20140304","1.0.20140306","1.0.20140311","1.0.20140313",
"1.0.20140316","1.0.20140318","1.0.20140319","1.0.20140325","1.0.20140326","1.0.
20140330","1.0.20140331","1.0.20140401","1.0.20140403","1.0.20140409","1.0.20140
412","1.0.20140416","1.0.20140422","1.0.20140428","1.0.20140429","1.0.20140502",
"1.0.20140504","1.0.20140505","1.0.20140506","1.0.20140507","1.0.20140511","1.0.
20140516","1.0.20140519","1.0.20140520","1.0.20140521","1.0.20140523","1.0.20140
526","1.0.20140529","1.0.20140601","1.0.20140602","1.0.20140603","1.0.20140606",
"1.0.20140608","1.0.20140609","1.0.20140610","1.0.20140611","1.0.20140616","1.0.
20140617","1.0.20140618","1.0.20140619","1.0.20140622","1.0.20140623","1.0.20140
626","1.0.20140628","1.0.20140702","1.0.20140710","1.0.20140715","1.0.20140716"]

npm ERR!     at installTargetsError (C:\nodejs\node_modules\npm\lib\cache.js:685
:10)
npm ERR!     at C:\nodejs\node_modules\npm\lib\cache.js:607:10
npm ERR!     at saved (C:\nodejs\node_modules\npm\node_modules\npm-registry-clie
nt\lib\get.js:138:7)
npm ERR!     at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\nodejs\\\\node.exe" "C:\\nodejs\\node_modules\\npm\\bin\\n
pm-cli.js" "install"
npm ERR! cwd C:\Users\user\workspace\
npm ERR! node -v v0.10.4
npm ERR! npm -v 1.2.18
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\Users\user\workspace\npm-debug.log
npm ERR! not ok code 0
nDmitry commented 10 years ago

@Turek Autoprefixer uses a caret version range for caniuse-db package (^1.0.20140710), you should upgrade npm: npm update -g npm (or node itself to get the latest bundled npm, don't know what's better on Windows).