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

前端 未结 20 2421
忘掉有多难
忘掉有多难 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:15

    I'm not exactly sure where my problem was, but I believe it was because I was using the same global packages from both npm and Yarn.

    I uninstalled all the npm global packages, then when using yarn commands once again, the problem was gone.

    To see global packages installed...

    for npm:

    npm ls -g --depth=0
    

    for Yarn:

    yarn global list
    

    I then uninstalled each package I saw in the npm listing, using:

    npm uninstall -g 
    

提交回复
热议问题