当前位置: 首页 > 知识库问答 >
问题:

node.js - yarn报错Couldn't find a script named "upgrade"该如何解决?

琴英华
2023-06-07

在执行yarn upgrade caniuse-lite browserslist命令时,出现了如下错误,请问应该如何解决?
Error

  • Node版本是18.16.0
  • Npm版本是9.5.1
  • yarn版本是3.6.0
  • 操作系统是Win10专业版

共有2个答案

程昕
2023-06-07

检查一下打包目录,大概率是打包目录不正确,不然就只有yarn版本不匹配了

侯令雪
2023-06-07

yarn add caniuse-lite browserslist

 类似资料:
  • Upgrades packages to their latest version based on the specified range. yarn upgrade [package | package@tag | package@version | @scope/]... [--ignore-engines] [--pattern] This command updates dependen

  • This is similar to npm-check interactive update mode. It provides an easy way to update outdated packages. yarn upgrade-interactive [--latest] The upgrade-interactive command takes the same parameters

  • 本文向大家介绍启动hadoop报如下错误,该如何解决?相关面试题,主要包含被问及启动hadoop报如下错误,该如何解决?时的应答技巧和注意事项,需要的朋友参考一下 --1.error org.apache.hadoop.hdfs.server.namenode.NameNode --找不到主类,应该是配置文件的hadoop的安装位置配置错误,对hadoop-env.sh文件进行检查修改 --2.o

  • yarn 安装 qmarkdown 报 yarn 网络错误 想使用 quasar 的 qmarkdown https://qmarkdown.netlify.app/developing/using-qmarkdown 感觉用法很优雅 所以我参考 https://madewith.cn/649 使用 yarn 安装 qmarkdown 但是报错了,莫名其妙 然后我参考 https://segmen

  • 本地构建运行seleniumhq.github.io时,报错 尝试过的方案,均失败 1、git config --global http.postBuffer 1024M 暂时想不到其他的解决方案

  • react中使用antd的组件运行报错Error: Invalid hook call和Uncaught TypeError: Cannot read properties of null (reading 'useContext') 网上搜索该问题,未能解决。希望得到解决方案。