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

Install fails if autoprefixer is already installed #45

Closed tqc closed 10 years ago

tqc commented 10 years ago

My project has a direct dependency on autoprefixer - basically a dev server that adds prefixes when serving css, then grunt-autoprefixer for the built/minified version.

https://github.com/tqc/ChondricJS/blob/master/package.json

I'm getting an error when running npm install:

npm ERR! Error: ENOENT, chmod 'c:\git\ChondricJS\node_modules\grunt-autoprefixer\node_modules\autoprefixer\bin\autoprefixer'

If I delete autoprefixer and install the packages manually in a different order, everything works as it should:

npm install grunt-autoprefixer
npm install autoprefixer
nDmitry commented 10 years ago

grunt-autoprefixer creates a symlink to a bundled autoprefixer bin in ./node_modules/.bin/autoprefixer for convenient access to the Autoprefixer CLI, but you're already have this symlink from autoprefixer package. It seemed convenient then, perhaps I should remove the bin property from package.json and point out at the readme that users who want to update prefixes database can reinstall the plugin. I believe the ability having both packages installed is more important than that shorthand.