I am running Autoprefixer in Sublime Text 3, and am now getting this error when saving CSS files:
Autoprefixer Error: Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest --update-db
The problem I have is simple. I don't know where or how to run the given instruction. Is this done within ST3, or via Terminal on the Mac? And how is it done?
Would really appreciate a pointer.
Thanks.
This is done from Terminal. All the action takes place in
~/Library/Application Support/Sublime Text 3/Packages/Autoprefixer
, so go there first:Next, we need to delete the old binaries, as at least my version of
npm
didn't want to overwrite them. This deletesautoprefixer
andbrowserslist
:Next, all you need to do is run
(again, from
~/Library/Application Support/Sublime Text 3/Packages/Autoprefixer
- this is very important) and you should be all set. When I ran it 10 minutes ago, the results were:Your results may be different depending on when you run the command, as different versions might be available then.