caniuse-lite is outdated.
yarn run v1.22.22
$ vite build --mode production
> 默认自动化文档地址:http://127.0.0.1:8888/swagger/index.html
> 默认前端文件运行地址:http://127.0.0.1:443
vite v4.5.3 building for production...
transforming (25) src\App.vueBrowserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
✓ 2641 modules transformed.
EPERM: operation not permitted, rmdir 'C:\Users\VSC\Desktop\gattefosse\web\dist\aspnet_client\system_web\2_0_50727'
✓ built in 1m 28s
error during build:
Error: EPERM: operation not permitted, rmdir 'C:\Users\VSC\Desktop\gattefosse\web\dist\aspnet_client\system_web\2_0_50727'
at Object.rmdirSync (node:fs:1219:11)
at _rmdirSync (node:internal/fs/rimraf:260:21)
at rimrafSync (node:internal/fs/rimraf:193:7)
at node:internal/fs/rimraf:253:9
at Array.forEach (<anonymous>)
at _rmdirSync (node:internal/fs/rimraf:250:7)
at rimrafSync (node:internal/fs/rimraf:193:7)
at node:internal/fs/rimraf:253:9
at Array.forEach (<anonymous>)
at _rmdirSync (node:internal/fs/rimraf:250:7)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
npx update-browserslist-db@latest
Need to install the following packages:
update-browserslist-db@1.1.3
Ok to proceed? (y) y
Latest version: 1.0.30001707
Installed version: 1.0.30001588
Removing old caniuse-lite from lock file
Installing new caniuse-lite version
$ npm install caniuse-lite
Cleaning package.json dependencies from caniuse-lite
$ npm uninstall caniuse-lite
caniuse-lite has been successfully updated
No target browser changes