Autoprefixer: Browserslist: caniuse-lite is outdated

Created on 23 Jan 2019  Β·  76Comments  Β·  Source: postcss/autoprefixer

Hello,

First of all, thank you for this awesome library!!!
We are using nodebb which depends on autoprefixer. During nodebb build we noted the following:
Browserslist: caniuse-lite is outdated. Please run next command npm update caniuse-lite browserslist

I believe this is related to autoprefixer dependency that may need updating.
Related issue reported in nodebb github page): https://github.com/NodeBB/NodeBB/issues/7271

Thank you!

Most helpful comment

If you have a multitude of out of date packages, the fastest way to update them is with npm-update-all.

npm i npm-update-all -g
npm-update-all

All 76 comments

Hi. Just update the library as it mentioned in the text. Autoprefixer doesn't need any update since it always use latest version.


SOLUTION UPDATE (2020)

npx browserslist@latest --update-db

Thank you!

Sorry to intrude in this topic, but I am having the same issue. I ran the command (yarn upgrade caniuse-lite browserlist), but I keep getting the Browserslist: caniuse-lite is outdated.-message. Do I need to handle it differently for yarn? Or am I doing something wrong?

In my case I am using the postcss-loader which requires postcss, that requires autoprefixer which requires caniuse-lite as a dependency.

I hope you can help @ai or @PostMidnight

@sybrendotinga hm, strange. Can you show your package.json?

It is a big one, so I left all the clutter (name, description, etc.) out:

{
  "devDependencies": {
    "@babel/core": "^7.2.2",
    "@babel/plugin-syntax-dynamic-import": "^7.2.0",
    "@babel/plugin-transform-runtime": "^7.2.0",
    "@babel/polyfill": "^7.2.5",
    "@babel/preset-env": "^7.3.1",
    "@babel/runtime": "^7.3.1",
    "@fortawesome/fontawesome-free": "^5.7.0",
    "@intervolga/optimize-cssnano-plugin": "^1.0.6",
    "@vue/test-utils": "^1.0.0-beta.27",
    "axios": "^0.18.0",
    "babel-core": "^7.0.0-0",
    "babel-eslint": "^10.0.1",
    "babel-jest": "^23.6.0",
    "babel-loader": "^8.0.5",
    "babel-plugin-component": "^1.1.1",
    "browser-sync": "^2.26.3",
    "browser-sync-spa": "^1.0.3",
    "browser-sync-webpack-plugin": "^2.2.2",
    "clean-webpack-plugin": "^1.0.1",
    "css-loader": "^2.1.0",
    "cypress": "^3.1.5",
    "dotenv": "^6.2.0",
    "dotenv-webpack": "^1.7.0",
    "element-theme-chalk": "^2.5.3",
    "element-ui": "^2.5.3",
    "eslint": "^5.12.1",
    "eslint-config-standard": "^12.0.0",
    "eslint-friendly-formatter": "^4.0.1",
    "eslint-loader": "^2.1.1",
    "eslint-plugin-cypress": "^2.2.0",
    "eslint-plugin-import": "^2.16.0",
    "eslint-plugin-node": "^8.0.1",
    "eslint-plugin-promise": "^4.0.1",
    "eslint-plugin-standard": "^4.0.0",
    "eslint-plugin-strict-vue": "^1.0.0",
    "eslint-plugin-vue": "^5.1.0",
    "eslint-plugin-vue-types": "^1.0.0",
    "file-loader": "^3.0.1",
    "friendly-errors-webpack-plugin": "^1.7.0",
    "html-webpack-plugin": "^3.2.0",
    "iotacss": "^1.6.0",
    "jest": "^23.6.0",
    "jest-serializer-vue": "^2.0.2",
    "launch-editor-middleware": "^2.2.1",
    "mini-css-extract-plugin": "^0.5.0",
    "node-ip": "^0.1.2",
    "node-sass": "^4.11.0",
    "postcss-loader": "^3.0.0",
    "regenerator-runtime": "^0.13.1",
    "sass-loader": "^7.1.0",
    "sass-resources-loader": "^2.0.0",
    "static-server": "^2.2.1",
    "style-loader": "^0.23.1",
    "stylelint": "^9.10.1",
    "stylelint-config-recommended": "^2.1.0",
    "stylelint-config-recommended-scss": "^3.2.0",
    "stylelint-config-sass-guidelines": "^5.3.0",
    "stylelint-config-standard": "^18.2.0",
    "stylelint-scss": "^3.5.1",
    "stylelint-webpack-plugin": "^0.10.5",
    "terser-webpack-plugin": "^1.2.1",
    "url-loader": "^1.1.2",
    "vue": "^2.5.22",
    "vue-hot-reload-api": "^2.3.1",
    "vue-html-loader": "^1.0.0",
    "vue-jest": "^3.0.2",
    "vue-loader": "^15.6.2",
    "vue-style-loader": "^4.1.2",
    "vue-template-compiler": "^2.5.22",
    "vue-template-loader": "^1.0.0",
    "vue-types": "^1.3.4",
    "vuelidate": "^0.7.4",
    "vuex": "^3.1.0",
    "webpack": "^4.29.0",
    "webpack-assets-manifest": "^3.1.1",
    "webpack-bundle-analyzer": "^3.0.3",
    "webpack-cleanup-plugin": "^0.5.1",
    "webpack-cli": "^3.2.1",
    "webpack-dev-server": "^3.1.14",
    "webpack-merge": "^4.2.1",
    "webpackbar": "^3.1.5"
  }
}

What I have also tried is to trash the node_modules, and re-run the yarn install. But that had no luck.

Maybe you this yarn.local is also interesthing: https://pastebin.com/Szab85NW
I see autoprefixer is not only used by postcss, but also by stylelint.

@sybrendotinga yeap, yarn doesn’t have a feature for this case. Here is a issue: https://github.com/yarnpkg/yarn/issues/4986

Solutions:

  1. Change yarn.lock manually.
  2. Call yarn upgrade to upgrade all dependencies.
  3. Use yarn --flat

Same issue here. Running npm update caniuse-lite browserslist does not help.

$ cat package-lock.json | grep caniuse
            "caniuse-lite": "^1.0.30000898",
        "caniuse-lite": {
          "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000898.tgz",
        "caniuse-lite": "^1.0.30000929",
        "caniuse-lite": {
          "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000932.tgz",
    "caniuse-api": {
      "resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz",
        "caniuse-lite": "^1.0.0",
            "caniuse-lite": "^1.0.30000876",
            "caniuse-lite": {
              "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000876.tgz",
    "caniuse-lite": {
      "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000874.tgz",
            "caniuse-lite": "^1.0.30000876",
        "caniuse-lite": {
          "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000876.tgz",
        "caniuse-api": "^3.0.0",
            "caniuse-lite": "^1.0.30000876",
        "caniuse-lite": {
          "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000876.tgz",
        "caniuse-api": "^3.0.0",
            "caniuse-lite": "^1.0.30000876",
        "caniuse-lite": {
          "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000876.tgz",
            "caniuse-lite": "^1.0.30000876",
        "caniuse-lite": {
          "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000876.tgz",
$ cat package.json 
{
  "name": "tinode-webapp",
  "description": "Tinode messenger for the web",
  "version": "0.15.12",
  "devDependencies": {
    "@babel/core": "^7.1.2",
    "@babel/preset-env": "^7.1.0",
    "@babel/preset-react": "^7.0.0",
    "babel-loader": "^8.0.4",
    "babel-plugin-react-intl": "^3.0.1",
    "browserslist": "^4.4.1",
    "cssnano": "^4.0.5",
    "webpack": "^4.23.1",
    "webpack-cli": "^3.1.2"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/tinode/example-react-js.git"
  },
  "scripts": {
    "build": "npm run vers && npm run build:prod && npm run build:dev && npm run build:css && npm run build:i18n",
    "build:css": "postcss css/base.css > css/base.min.css",
    "build:dev": "webpack --mode development --output ./umd/index.dev.js",
    "build:prod": "webpack --mode production --output ./umd/index.prod.js",
    "build:i18n": "node scripts/flatten-messages.js",
    "vers": "node scripts/gen-version.js"
  },
  "files": [
    "src/index.js",
    "src/config.js",
    "src/views/*.jsx",
    "src/widgets/*.jsx",
    "src/lib/*.js",
    "src/i18n/*.json",
    "umd/index.prod.js",
    "umd/index.prod.js.map",
    "umd/index.dev.js",
    "umd/index.dev.js.map",
    "audio/msg.mp3",
    "css/base.css",
    "css/base.min.css",
    "img/ignasi_pattern_s.png",
    "img/logo.svg",
    "img/logo32x32.png",
    "img/logo32x32a.png",
    "img/logo96.png",
    "img/logo192.png",
    "img/badge96.png",
    "img/broken_image.png",
    "index-dev.html",
    "index.html",
    "manifest.json",
    "service-worker.js",
    "firebase-init.js",
    "web-desktop-2.png",
    "web-mob-chat-1.png",
    "web-mob-contacts-1.png",
    "web-mob-info-1.png",
    "web-mob-new-chat-1.png"
  ],
  "keywords": [
    "chat",
    "instant-messenger",
    "message",
    "messenger",
    "react",
    "web"
  ],
  "main": "umd/index.prod.js",
  "bugs": {
    "url": "https://github.com/tinode/example-react-js/issues"
  },
  "homepage": "https://github.com/tinode/chat",
  "email": "[email protected]",
  "author": "Tinode Authors <[email protected]>",
  "license": "Apache-2.0",
  "dependencies": {
    "firebase": "^5.8.1",
    "react": "^16.6.3",
    "react-dom": "^16.6.3",
    "react-intl": "^2.8.0",
    "tinode-sdk": "^0.15.12"
  }
}

@or-else answer is the same as above. Use full update npm update

Yes, indeed it helped. Thanks.

If you have a multitude of out of date packages, the fastest way to update them is with npm-update-all.

npm i npm-update-all -g
npm-update-all

@sybrendotinga yeap, yarn doesn’t have a feature for this case. Here is a issue: yarnpkg/yarn#4986

Solutions:

  1. Change yarn.lock manually.
  2. Call yarn upgrade to upgrade all dependencies.
  3. Use yarn --flat

For me the second option (yarn upgrade) worked.

I noticed that the third action required a lot of manual version picking. I would not recommend going through this process.

The first option probably also requires to run the yarn install command after manually changing the yarn.lock.

Thanks for helping!

I have the same problem, npm update caniuse-lite browserslist doesn't help.
Running npm update locks my node-modules folder, I had to delete the folder and reimport it because i had no permission after the update

For me this was caused by slightly out of date ng-packagr/build-ng-packagr. For an angular project, updating them both solved the issue. ng-packagr uses autoprefixer.

@Dan503 thank you ,I got resolved this problem!

@sybrendotinga

In my case I am using the postcss-loader which requires postcss, that requires autoprefixer which requires caniuse-lite as a dependency.

npm will use whatever the oldest common dependency is of packages. This is why trying to install the latest version of a package doesn't always install the latest version of the package. An outdated module that also depends on it can hold back the upgrade.

Sometimes you can figure out all the dependency conflicts by searching package-lock.json (Or the yarn equivalent). It can be difficult though.

That is why the easiest way to fix node_modules version conflicts is by using npm-update-all. It is a bit of a nuclear solution but it tends to fix far more problems than it can potentially cause.

I just tried to yarn upgrade caniuse-lite browserslist but with no effect.

Then, I tried to yarn add caniuse-lite browserslist. No effect too.

Still see this warning.

after tried so many things i got solved this using npm update command.

I tried yarn upgrade too

@Grawl check npm ls for who load old caniuse-lite

i noticed in my case it's happened for npm install failed, and then i successfully installed npm, still, it shows me but after some time everything works fine.

@ai it's webpack-encore or babel-preset-env

➜ yarn why caniuse-lite                 
yarn why v1.16.0
[1/4] πŸ€”  Why do we have the module "caniuse-lite"...?
[2/4] 🚚  Initialising dependency graph...
[3/4] πŸ”  Finding dependency...
[4/4] 🚑  Calculating file sizes...
=> Found "[email protected]"
info Has been hoisted to "caniuse-lite"
info Reasons this module exists
   - "workspace-aggregator-823e49fe-4244-49c9-bc2f-319f96ae3910" depends on it
   - Hoisted from "_project_#my-postcss-config#autoprefixer#caniuse-lite"
   - Hoisted from "_project_#my-postcss-config#autoprefixer#browserslist#caniuse-lite"
info Disk size without dependencies: "3.08MB"
info Disk size with unique dependencies: "3.08MB"
info Disk size with transitive dependencies: "3.08MB"
info Number of shared dependencies: 0
=> Found "babel-preset-env#[email protected]"
info Reasons this module exists
   - "_project_#my-webpack-encore-config#babel-preset-env#browserslist" depends on it
   - Hoisted from "_project_#my-webpack-encore-config#babel-preset-env#browserslist#caniuse-lite"
info Disk size without dependencies: "3.05MB"
info Disk size with unique dependencies: "3.05MB"
info Disk size with transitive dependencies: "3.05MB"
info Number of shared dependencies: 0
✨  Done in 0.73s.

I though if I run yarn upgrade on project with dependency it must update minor/patch version of required dependency and save it to yarn.lock in project instead of using version from dependency, or it works other way?

I though if I run yarn upgrade on project with dependency it must update minor/patch version of required dependency and save it to yarn.lock

Yeap, it should do it.

Sorry, I have no idea why it doesn’t work. Can you ask yarn community?

I run the command 'npm update caniuse-lite browserslist' but it keeps telling me 'Browserslist: caniuse-lite is outdated.', any idea how to solve this?

Use npm update

Use npm update

I did but it keeps telling me the same. It comes from my Grunt postcss task.

Check package.json, maybe somebody locked caniuse-db or browserslist version.

Try npm ls to find who use old version.

Everything is updated to the latest version but still the same message.

Post npm ls to gist and post the link here

MacBook-Pro-van-Jim:assets jimvendrig$ npm ls
@1.0.0 /Applications/MAMP/htdocs/shs/httpdocs/assets
β”œβ”€β”¬ [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚ └── [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚ └── [email protected] deduped
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚ └── [email protected]
β”‚ └── [email protected]
β”œβ”€β”€ [email protected]
β”œβ”€β”¬ [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ └── [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ lodash.[email protected]
β”‚ β”‚ β”‚ β”‚ └── lodash.[email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ @types/[email protected]
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”œβ”€β”¬ object.[email protected]
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”‚ └─┬ util.[email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ └─┬ object.[email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ └── [email protected] deduped
β”‚ β”œβ”€β”€ [email protected]
β”‚ └─┬ [email protected]
β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ └─┬ [email protected]
β”‚ └── [email protected] deduped
β”œβ”€β”¬ [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚ β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ └── [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ └── [email protected] deduped
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”œβ”€β”€ fs.[email protected]
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ └── [email protected] deduped
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ └── [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ └── [email protected] deduped
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”œβ”€β”¬ underscore.[email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ └── [email protected] deduped
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ └── [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ └── [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ └── [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ └── [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ └── [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ └─┬ [email protected]
β”‚ └─┬ [email protected]
β”‚ β”œβ”€β”€ fs.[email protected] deduped
β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ └── [email protected] deduped
β”œβ”€β”¬ [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ └── [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ └── [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ └── [email protected]
β”‚ └─┬ [email protected]
β”‚ └── [email protected]
β”œβ”€β”¬ [email protected]
β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚ └── [email protected] deduped
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ └── [email protected] deduped
β”‚ └── [email protected]
β”œβ”€β”¬ [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ └── [email protected] deduped
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ fs.[email protected] deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ β”‚ └── [email protected] deduped
β”‚ β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”‚ └── [email protected] deduped
β”‚ β”œβ”€β”€ [email protected]
β”‚ └─┬ [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ └── [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ └── [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ └── [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ └── [email protected]
β”œβ”€β”¬ [email protected]
β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”œβ”€β”€ [email protected]
β”‚ └─┬ [email protected]
β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ └── [email protected] deduped
β”œβ”€β”€ [email protected]
β”œβ”€β”¬ [email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ └─┬ [email protected]
β”‚ β”‚ └── [email protected] deduped
β”‚ β”œβ”€β”€ [email protected] deduped
β”‚ └─┬ [email protected]
β”‚ β”œβ”€β”€ [email protected]
β”‚ └── [email protected] deduped
└── popper.[email protected]

You still have [email protected] in your dependency tree.

Sorry, I can’t give you help for using npm. Google npm deep dependency update and ask a question on StackOverflow.

Sorry, got it working now. Had to use sudo npm i caniuse-lite to overwrite it. The update command like my terminal was telling me didn't do it for me.

Thanks for helping!

npm update

or

yarn upgrade

will do

In my case this works fine...

sudo npm i -g browserslist caniuse-lite

Remove yarn.lock,then yarn,this works fine.

i want to save my locks

Solutions:

  1. Change yarn.lock manually.
  2. Call yarn upgrade to upgrade all dependencies.
  3. Use yarn --flat

What do you mean with Change yarn.lock manually.
What exactly should I change there?

npm update --depth 10 caniuse-lite browserslist

All of the above don't work for me.
I delete the node_modules floder: canisue-lite and browserslist and run: npm install. It works fine.

just fire this command npm install react-scripts@latest thats all :)

i dont use react dude

Just npm update everything doesn't really resolve the problem. You need to find out which top-level package depends on an outdated browserslist package with npm ls browserslist command, then upgrade that top-level package.

In my case, that package is eslint-plugin-compat.

Running npm ls browserslist found that @babel/preset-env was using the outdated browserslist. Updating that package fixed the issue.

Thanks @rockallite!

I had success by installing it separately npm i caniuse-lite. It apparently overwrote the old version successfully

npm -i browserslist solved

I tried this command and it works..
npm update --depth 10 caniuse-lite browserslist

None of the above "solutions" work for me.

When I ran npm ls browserslist I get

[email protected] /Users/steve/github/ng-starter-app
└─┬ [email protected]
  └─┬ [email protected]
    └── [email protected] 

Install latest caniuse-lite/browserslist packages with yarn add -DE caniuse-lite browserslist.
Then, add resolutions entry in package.json with, e.g.:

"resolutions": {
    "browserslist": "4.8.3",
    "caniuse-lite": "1.0.30001020"
}

@ccambournac I don't use Yarn, I use npm. I tried installing with --save-dev --save-exact and adding the resolutions. Still get the warning.

Hi @smlombardi , you may use whatever package manager you want. :) Yarn or npm is fine.

In my case, however, using resolutions in package.json solved the issue. At least, it is a temporary solution waiting dependencies updates.

Have you tried removing node_modules first?

Yes, remove node_modules, package-lock.json several times now.

At this point I just ignore the warning.

npm update --depth 10 caniuse-lite browserslist

For me, it only worked removing the browserslist part -> npm update --depth 10 caniuse-lite

None of the solutions here worked for me. :(

  • npm update caniuse-lite browserslist
  • npm update caniuse-lite
  • npm update browserslist
  • npm install caniuse-lite -g
  • npm install browserslist -g
  • npm update
  • npm-update-all
  • npm update --depth 10 caniuse-lite browserslist
  • npm update --depth 10 caniuse-lite
  • npm update --depth 10 browserlist
  • all variations with sudo
  • deleting node_modules/ around all variations of these and reinstalling
  • deleting package-lock.json
  • setting specific resolution versions

I appreciate all the answers, hope this annoying warning will go away. I keep thinking something is actually wrong...

By far the best way to solve this is to remove caniuse-lite from your yarn.lock then just run yarn (I'm sure it will work the same with package-lock / npm)

As @Grawl pointed out below my solution is not perfect for every scenario. But I have found it relatively save to execute the following steps in my project:

  1. npm update
  2. rm -rf node_modules && package-lock.json
  3. npm cache clean --force
  4. npm i

Lockfile is the file which stores the packages dependency tree and the precise versions of each package your project uses. If package.json is the recipe, lockfile is the cake you baked from the recipe. If you remove it, NPM will rebuild a new one based on your package.json, which means you may end up with different versions of any package in the tree in your project. For serious projects, that means lots of testing and validation, and not something you want to 'just do'. In any case, you can achieve basically the same thing by running npm update.

https://stackoverflow.com/questions/38480568/rails-5-0-0-when-installing-nio4r-failed-to-build-gem-native-extension/44833307#comment94051413_38480622

Most solutions (including the promising looking npm update --depth 10 and deleting browserlist / caniuse-lite from node_modules) did not work.

npm i browserslist as pointed out by @andymabb worked. (Possibly npm i caniuse-lite as pointed by @djheru would also work).

I solved it by the following steps in my project:

  1. removedependencies["caniusep-lite"] in package-lock.json
{
  "dependencies": {
   ...,
    - "caniuse-lite": {
    -   "version": "1.0.30000923",
    -   "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000923.tgz",
    -   "integrity": "sha512-j5ur7eeluOFjjPUkydtXP4KFAsmH3XaQNch5tvWSO+dLHYt5PE+VgJZLWtbVOodfWij6m6zas28T4gB/cLYq1w=="
    - },
    ...
  }
}
  1. npm cache clean --force
  2. remove project node_modules
  3. npm install

For any lost soul ending up here: My project uses autoprefixer as well. I've updated autoprefixer and that did not solve my problem. I tried many solutions posted here as well with no success.

The culprit was not autoprefixer. It was @babel/preset-env dependency. Updating it to 7.8.7 fixed this problem.

Soon we will have special tool npx browserslist --update-db to update caniuse-lite is nested dependencies
https://github.com/browserslist/browserslist/pull/450

@ucarmurat I removed your comment, because β€œuse old versions to not see the warning” is a very bad practice.

Warning helps you. The problem is not a warning, but an outdated database. By hiding warning you keep the origin problem in the place.

It is like to stop seeing the doctor to stop listen to sad news rather than start the treatment.

Browserslist 4.10 was released with --update-db option.

To hide warning:

  1. Update Bowserslist
  2. Call npx browserslist --update-db

This is what I get trying to run npx browserslist --update-db

Ξ» npx browserslist --update-db
openssl config failed: error:02001003:system library:fopen:No such process
browserslist: Unknown arguments --update-db.

Usage:
  browserslist
  browserslist "QUERIES"
  browserslist --json "QUERIES"
  browserslist --config="path/to/browserlist/file"
  browserslist --coverage "QUERIES"
  browserslist --coverage=US "QUERIES"
  browserslist --coverage=US,RU,global "QUERIES"
  browserslist --env="environment name defined in config"
  browserslist --stats="path/to/browserlist/stats/file"

@CodeBradley seems like you have old Browserslist. Try npx [email protected] --update-db

@CodeBradley seems like you have old Browserslist. Try npx [email protected] --update-db

Thanks, this solved the issue for me.

None of the solutions here worked for me. :(

  • npm update caniuse-lite browserslist
  • npm update caniuse-lite
  • npm update browserslist
  • npm install caniuse-lite -g
  • npm install browserslist -g
  • npm update
  • npm-update-all
  • npm update --depth 10 caniuse-lite browserslist
  • npm update --depth 10 caniuse-lite
  • npm update --depth 10 browserlist
  • all variations with sudo
  • deleting node_modules/ around all variations of these and reinstalling
  • deleting package-lock.json
  • setting specific resolution versions

I appreciate all the answers, hope this annoying warning will go away. I keep thinking something is actually wrong...

lol same

@cyayung here is the right solution )you mentioned old solutions)

npx browserslist@latest --update-db

@zdimaz try

npx browserslist@latest --update-db

If it will not work, create an issue


I remove your comment because of β€œnoob” word. You will be blocked next time. It is not polite behavior.

C:\UsersAdmin>npx browserslist@latest --update-db
npx: installed 11 in 10.301s
Cannot find package.json. Is it a right project to run npx browserslist --update-db?

Does not work autoprefixer

@cyayung here is the right solution )you mentioned old solutions)

npx browserslist@latest --update-db

Thanks for the reply. caniuse-lite is still outdated

@zdimaz solution is in the root message. You need to run it in the project.

@cyayung create an issue at Browserslist with all details

Seeing the same:

❯ npx browserslist@latest --update-db

npx: installed 11 in 2.333s
Current version: 1.0.30001048
New version: 1.0.30001048
Updating caniuse-lite…
caniuse-lite has been successfully updated% 

@aaronjensen yeap, you already have the latest caniuse-lite.

If you still have a warning, please open a issue with your npm ls output.

If you have a multitude of out of date packages, the fastest way to update them is with npm-update-all.

npm i npm-update-all -g
npm-update-all

after this update command, high chance the project will no longer build...then need to find ways to roll back..... don't ask me how I know....

The official solution for caniuse-lite is outdated is:

npx browserslist@latest --update-db
Was this page helpful?
0 / 5 - 0 ratings