yarn 保错

error An unexpected error occurred: "ENOENT: no such file or directory, open '/usr/local/lib/node_modules/yarn/node_modules/har-validator/lib/index.js'".
info If you think this is a bug, please open a bug report with the information provided in "/Users/ypeng/chanjet_ng/saas-hsy-web/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/c... for documentation about this command.

阅读 9k
1 个回答
新手上路,请多包涵

https://github.com/yarnpkg/ya...
我和这贴题主一样发现是yarn所以来的har-validator包的lib目录下缺少 index.js 文件,但 package.json已经定义了新的入口文件了,不知道是不是哪里直接按路径去引用了。

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