报错:caniuse-lite is outdated PanJiaChen/vue-element-admin#1961 @Dan503 thank you ,I got resolved this problem! 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.
Moreover, If nothing in your project changed and you suddenly see this msg when starting or building your project, it probably means there was a recent version update to caniuse-lite. Unfortunately, the text msg that browserslist displays is only helpful if you installed caniuse-lite as a dependency of your project. Most likely, you did not. Consequently, When your project was created (maybe with app angularapp or create-react-app or similar for your framework), npm installed browserslist as a dependency of its needed tools, not as one of your project's dependencies. At the same time, caniuse-lite was installed as a dependency of browserslist. Next, Delete following folders from node_modulesfolder: caniuse-liteand browserslistOpen up CMD (inside C:\Users\USERNAME\AppData\Local\Temp\WebCompilerX.X.X) and run: npm i caniuse-lite browserslist Share Improve this answer Follow edited Jan 11 '20 at 9:31 Thereof, At the same time, caniuse-lite was installed as a dependency of browserslist. Later when the project was updated, a package-lock.json file was created which locks all dependencies to a specific version.
20 Similar Question Found
Why does npm use caniuse-lite as a dependency?
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.
What to do if browserslist says caniuse-lite is outdated?
Browserslist: caniuse-lite is outdated. Please run next command `npm update caniuse-lite browserslist` Recently, when I compile my scss files I get an error. The error message says: Browserslist: caniuse-lite is outdated. Please run next command npm update caniuse-lite browserslist
Do you need to run caniuse-lite in a project?
You need to run it in the project. @aaronjensen yeap, you already have the latest caniuse-lite. If you still have a warning, please open a issue with your npm ls output. Browserslist: caniuse-lite is outdated.
Is there a package lock for caniuse-lite?
At the same time, caniuse-lite was installed as a dependency of browserslist. Later when the project was updated, a package-lock.json file was created which locks all dependencies to a specific version.
What's the difference between caniuse-db and caniuses-lite?
The API differences are very small and are detailed in the section below. caniuse-db provides a full data.json file which contains all of the features data. Instead of this large file, caniuse-lite provides this data subset instead, which has the browser, prefix, prefix_exceptions, usage_global and versions keys from the original.
How does the feature method work in caniuse-lite?
The feature method takes a file from data/features and converts it into something that more closely represents the caniuse-db format. Note that only the title, stats and status keys are kept from the original data. The features index is provided as a way to query all of the features that are listed in the caniuse-db dataset.
How to update caniuse-lite browserslist in npm?
Please run next command `npm update caniuse-lite browserslist` Jul 06 10:41:15 vm1.local.com kibana [5454]: Browserslist: caniuse-lite is outdated. Please run next command `npm update caniuse-lite browserslist`
How to update caniuse lite in browserslist-kibana?
Browserslist: caniuse-lite is outdated. Please run next command `npm update caniuse-lite browserslist - Kibana - Discuss the Elastic Stack Browserslist: caniuse-lite is outdated. Please run next command `npm update caniuse-lite browserslist
When to use caniuse lite instead of db?
This packed data is then reassembled (via functions exposed by this module) into a larger format which is mostly compatible with caniuse-db, and so it can be used as an almost drop-in replacement for caniuse-db for contexts where size on disk is important; for example, usage in web browsers.
How to update caniuse-lite on browserslist?
rowserslist: caniuse-lite is outdated. Please run next command npm update caniuse-lite browserslist` Then I removed any certificates related configuration and reverted back to normal traffic (http)... But again I got the same error. So when I uninstall the rpm package completely and installed again, it worked ( without certificate)...
Do you need caniuse-lite browserlist for yarn?
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.
Which is better sass browserslist or caniuse lite?
As mentioned in Scott Kuhl's answer this issue is mentioned in https://github.com/madskristensen/WebCompiler/issues/413 For me, running the command npm i caniuse-lite- browserslist only worked for about 1/2 a day before it was an issue again. The following solution, mentioned in the post, works much better.
Can you run npm update on caniuse lite?
Follow the prompts and run npm update It’s not solved. So I checked npm Manual, that is, can’t run directly npm update You must bring the package name, so you should write the command as follows: Or delete it directly node_modules/caniuse-lite Folder, and then re install:
When to run npm update caniuse-lite browserslist?
Angular Browserslist: caniuse-lite is outdated. Please run next command `npm update` I have recently started getting this error on a Angular 8 project (node v10.16.0) I am working on. Running npm update caniuse-lite browserslist did nothing
How does caniuse-lite-npm convert null array entries?
It does this in multiple ways, such as converting null array entries into empty strings, representing support data as an integer rather than a string, and using base62 references instead of longer human-readable keys.
Is there a way to update caniuse-lite browserslist?
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.
Why does sass browserslist say caniuse-lite is outdated?
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 npm --depth 9999 update fixed the issue for me--apparently because package-lock.json was insisting on the outdated versions. The answer from @Alexandr Nil is safe, and was effective for me.
Why do i get an error on caniuse-lite?
Recently, when I compile my scss files I get an error. The error message says: Browserslist: caniuse-lite is outdated. Please run next command npm update caniuse-lite browserslist First, as the message says, I ran npm update caniuse-lite browserslist but it didn't fix the issue.
Is the browserslist for caniuse-lite outdated?
Pack today vue Project, a warning suddenly pops up: Browserslist: caniuse-lite is outdated. Please run next command `npm update` Follow the prompts and run npm update It’s not solved.
How to update caniuse-lite in npm update?
Browserslist: caniuse-lite is outdated. Please run the following command: `npm update`fail: Microsoft.AspNetCore.SpaServices [0] Browserslist: caniuse-lite is outdated. Please run the following command: `npm update`
This website uses cookies or similar technologies, to enhance your browsing experience and provide personalized recommendations. By continuing to use our website, you agree to our Privacy Policy