问题描述
我在nuxt 2.14.4应用程序上看到类似于this的依赖项错误。
ERROR Failed to compile with 57 errors
These dependencies were not found:
* child_process in ./node_modules/fsevents/node_modules/detect-libc/lib/detect-libc.js,./node_modules/fsevents/node_modules/node-pre-gyp/lib/testbinary.js and 5 others
* fs in ./node_modules/chownr/chownr.js,./node_modules/clone-stats/index.js and 48 others
- 重新安装“ child_process”和“ fs”并不能解决问题。显然,这是由其他原因触发的。
- 由于编译错误未在日志中浮出水面,因此无法找到错误源。尝试了几件事来扩展依赖项错误。 “ --loglevel verbose”和“ nuxt-log”。但是该日志不会扩展依赖关系。我希望看到所有缺少的依赖项(如日志所述,多5个child_process和48个fs)来解决编译错误。
- 不确定其他版本的模块是否存在此问题。可以从2中找出。
- 刷新/重新创建node_modules没有帮助。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)