Browserslist: caniuse-lite is outdated. Please run next command `npm update caniuse-lite browserslist`

前端 未结 20 2288
忘掉有多难
忘掉有多难 2020-12-08 03:31

Recently, when I compile my scss files I get an error. The error message says:

Browserslist: caniuse-lite is outdated. Please run next command n

相关标签:
20条回答
  • 2020-12-08 04:02

    On the Mac, I deleted node_modules and package-lock.json, then ran npm install and it fixed my issue.

    0 讨论(0)
  • 2020-12-08 04:03

    Continuation of answer above.

    Had the same "plugin error" as @MehrdadBabaki. I uninstalled web compiler, deleted the AppData WebCompiler folder mentioned above, then reopened VS2019 and reinstalled web compiler.

    THEN I went to the WebCompiler folder again and did npm i autoprefixer@latest npm i caniuse-lite@latest and npm i caniuse-lite browserslist@latest

    0 讨论(0)
  • 2020-12-08 04:03

    In my case, I deleted out the caniuse-lite, browserslist folders from node_modules.

    Then I type the following command to install the packages.

    npm i -g browserslist caniuse-lite --save
    

    worked fine.

    0 讨论(0)
  • 2020-12-08 04:03

    I've fixed this issue by doing, step by step:

    1. remove node_modules
    2. remove package-lock.json,
    3. run npm --depth 9999 update
    4. run npm install
    0 讨论(0)
  • 2020-12-08 04:03

    To fix the issue you can type below command:

    'npm -g update'

    0 讨论(0)
  • 2020-12-08 04:10

    In my case this works fine...

    sudo npm i -g browserslist caniuse-lite

    0 讨论(0)
提交回复
热议问题