npx browserslist@latest --update-db 和npx update-browserslist-db@lates ...

打印 上一主题 下一主题

主题 490|帖子 490|积分 1470

在前端执行变异的时候,控制台提示npx browserslist@latest --update-db 请问这个下令是做什么的
  1. $ npm run build
  2. \
  3. > web@3.0.0 build /home/liwei/PycharmProjects/web
  4. > react-app-rewired build
  5. Creating an optimized production build...
  6. Browserslist: caniuse-lite is outdated. Please run:
  7.   npx browserslist@latest --update-db
  8.   Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
  9. Compiled successfully.
  10. File sizes after gzip:
  11.   2.32 MB (+70 B)      build/static/js/16.822e2e5f.chunk.js
  12.   278.06 KB (+1.5 KB)  build/static/js/main.88af4464.chunk.js
  13.   79.69 KB (+1.23 KB)  build/static/css/main.ec8d2b92.chunk.css
  14.   3.13 KB              build/static/css/16.6fa41d69.chunk.css
  15.   3.07 KB (+1 B)       build/static/js/reactPlayerFilePlayer.02adccc0.chunk.js
  16.   2.08 KB (+1 B)       build/static/js/reactPlayerMux.8a85c963.chunk.js
  17.   2.05 KB (+2 B)       build/static/js/reactPlayerYouTube.ecd39187.chunk.js
  18.   1.54 KB (+3 B)       build/static/js/reactPlayerWistia.e0592d94.chunk.js
  19.   1.5 KB (+3 B)        build/static/js/reactPlayerVimeo.3e2dfb94.chunk.js
  20.   1.43 KB (+3 B)       build/static/js/reactPlayerFacebook.45676046.chunk.js
  21.   1.41 KB (+1 B)       build/static/js/reactPlayerPreview.da69ae74.chunk.js
  22.   1.4 KB (+2 B)        build/static/js/reactPlayerTwitch.9c133d0d.chunk.js
  23.   1.38 KB (+1 B)       build/static/js/runtime-main.bb27a88c.js
  24.   1.38 KB (+2 B)       build/static/js/reactPlayerDailyMotion.98099b29.chunk.js
  25.   1.36 KB (+1 B)       build/static/js/reactPlayerSoundCloud.083fc502.chunk.js
  26.   1.32 KB (+2 B)       build/static/js/reactPlayerVidyard.246075e1.chunk.js
  27.   1.32 KB (-1 B)       build/static/js/reactPlayerStreamable.095f2920.chunk.js
  28.   1.3 KB (+1 B)        build/static/js/reactPlayerKaltura.3de4dcde.chunk.js
  29.   1.27 KB (+2 B)       build/static/js/reactPlayerMixcloud.ff0de6b1.chunk.js
  30. The bundle size is significantly larger than recommended.
  31. Consider reducing it with code splitting: https://goo.gl/9VhYWB
  32. You can also analyze the project dependencies: https://goo.gl/LeUzfb
  33. The project was built assuming it is hosted at /.
  34. You can control this with the homepage field in your package.json.
  35. The build folder is ready to be deployed.
  36. You may serve it with a static server:
  37.   npm install -g serve
  38.   serve -s build
  39. Find out more about deployment here:
  40.   bit.ly/CRA-deploy
  41. liwei@vmfordev:~/PycharmProjects/web$ npx browserslist@latest --update-db
  42. npx: 7 安装成功,用时 3.701 秒
  43. The --update-db command is deprecated.
  44. Please use npx update-browserslist-db@latest instead.
  45. Browserslist DB update will still be made.
  46. Latest version:     1.0.30001612
  47. Installed version:  1.0.30001320
  48. Removing old caniuse-lite from lock file
  49. Installing new caniuse-lite version
  50. $ npm install caniuse-lite
  51. npm WARN @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.15.4 requires a peer of @babel/core@^7.13.0 but none is installed. You must install peer dependencies yourself.
  52. npm WARN @babel/plugin-proposal-class-static-block@7.15.4 requires a peer of @babel/core@^7.12.0 but none is installed. You must install peer dependencies yourself.
  53. npm WARN @wangeditor/editor-for-react@1.0.2 requires a peer of react@>=17.0.2 but none is installed. You must install peer dependencies yourself.
  54. npm WARN @wangeditor/editor-for-react@1.0.2 requires a peer of react-dom@>=17.0.2 but none is installed. You must install peer dependencies yourself.
  55. npm WARN react-markdown@8.0.7 requires a peer of @types/react@>=16 but none is installed. You must install peer dependencies yourself.
  56. npm WARN react-visibility-sensor@3.6.2 requires a peer of react@^0.14.0 || ^15.0.0 but none is installed. You must install peer dependencies yourself.
  57. npm WARN react-visibility-sensor@3.6.2 requires a peer of react-dom@^0.14.0 || ^15.0.0 but none is installed. You must install peer dependencies yourself.
  58. npm WARN tsutils@3.21.0 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.
  59. npm WARN worker-loader@0.8.1 requires a peer of webpack@>=0.9 <2 || ^2.1.0-beta || ^2.2.0 but none is installed. You must install peer dependencies yourself.
  60. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/chokidar/node_modules/fsevents):
  61. npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
  62. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules/fsevents):
  63. npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
  64. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/jest-haste-map/node_modules/fsevents):
  65. npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
  66. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/watchpack-chokidar2/node_modules/fsevents):
  67. npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
  68. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/webpack-dev-server/node_modules/fsevents):
  69. npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
  70. Cleaning package.json dependencies from caniuse-lite
  71. $ npm uninstall caniuse-lite
  72. npm WARN @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.15.4 requires a peer of @babel/core@^7.13.0 but none is installed. You must install peer dependencies yourself.
  73. npm WARN @babel/plugin-proposal-class-static-block@7.15.4 requires a peer of @babel/core@^7.12.0 but none is installed. You must install peer dependencies yourself.
  74. npm WARN @wangeditor/editor-for-react@1.0.2 requires a peer of react@>=17.0.2 but none is installed. You must install peer dependencies yourself.
  75. npm WARN @wangeditor/editor-for-react@1.0.2 requires a peer of react-dom@>=17.0.2 but none is installed. You must install peer dependencies yourself.
  76. npm WARN react-markdown@8.0.7 requires a peer of @types/react@>=16 but none is installed. You must install peer dependencies yourself.
  77. npm WARN react-visibility-sensor@3.6.2 requires a peer of react@^0.14.0 || ^15.0.0 but none is installed. You must install peer dependencies yourself.
  78. npm WARN react-visibility-sensor@3.6.2 requires a peer of react-dom@^0.14.0 || ^15.0.0 but none is installed. You must install peer dependencies yourself.
  79. npm WARN tsutils@3.21.0 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.
  80. npm WARN worker-loader@0.8.1 requires a peer of webpack@>=0.9 <2 || ^2.1.0-beta || ^2.2.0 but none is installed. You must install peer dependencies yourself.
  81. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/chokidar/node_modules/fsevents):
  82. npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
  83. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules/fsevents):
  84. npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
  85. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/jest-haste-map/node_modules/fsevents):
  86. npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
  87. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/watchpack-chokidar2/node_modules/fsevents):
  88. npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
  89. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/webpack-dev-server/node_modules/fsevents):
  90. npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
  91. caniuse-lite has been successfully updated
  92. No target browser changes
复制代码


免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
回复

使用道具 举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

李优秀

金牌会员
这个人很懒什么都没写!

标签云

快速回复 返回顶部 返回列表