github克隆vue-devtools到本地的运行yarn build报错问题?

由于众所周知的原因,国内无法打开谷歌扩展进行插件安装。但最近在搞 vue,迫切需要一个 vue 调试插件。一顿百度后,发现一个骚操作比较适合搞,那就整……

yarn build 之前一切正常,yarn build 之后:

image.png

lerna notice cli v4.0.0
lerna info Executing command in 9 packages: "yarn run build"
lerna ERR! yarn run build exited 1 in '@vue/devtools-api'
lerna ERR! yarn run build stderr:
node:internal/modules/cjs/loader:936
  throw err;
  ^

Error: Cannot find module 'C:\Users\绁炶嚜涓嶅嚒\AppData\Roaming\npm\node_modules\yarn\bin\yarn.js'
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
    at node:internal/main/run_main_module:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}
lerna ERR! yarn run build exited 1 in '@vue/devtools-api'
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

image.png

这啥情况啊?

阅读 4.6k
1 个回答

try:

  • 删除 yarn.lock 和 node_modules
  • 重新安装;
  • 重新执行 build 命令

看报错提示,很有可能是 lock 锁版本出了些问题。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题