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

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

    Many advise you to remove the package-lock.json or the yarn.lock. This is clearly a bad idea!

    I am using Yarn and I was able to correct this problem by removing only the caniuse-db and caniuse-lite entries in my yarn.lock and doing a yarn.

    It is not necessary to break the main function of the lockfile by deleting it.

提交回复
热议问题