npm - 缺少依赖项详细调试信息nuxt.js编译错误
问题描述
我在我的 nuxt 2.14.4 应用程序上看到与此类似的依赖项错误。
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 详细”和“nuxt-log”。但是日志并没有扩展依赖关系。我想查看所有缺少的依赖项(如日志所说,child_process 有 5 个,fs 有 48 个)来解决编译错误。
- 不确定这是否是对其他模块进行版本控制的问题。可以从2中算出来。
- 刷新/重新创建 node_modules 没有帮助。
解决方案
推荐阅读
- excel - Excel VBA用户表单:当我更改数据输入的第一列时数据覆盖
- reactjs - 使用 reactjs 将模式框推送到当前页面
- django - 如何呈现 POST 并使其显示在另一个页面上?以 Django 形式
- bash - bash printf 格式化 - 避免长行换行
- android - 匕首代码有效,如何使牙签代码以相同的方式工作?
- java - 如何使用java排除mongodb中的嵌套字段
- c++ - 使用在 C++ dll 中声明的函数及其 VB 声明
- python-3.x - Python:遍历目录树并检查最后一个子目录是否有文件
- mapbox - Mapbox GL JS - 堆叠/分层图像叠加
- node.js - 使用 Webpack、SASS、NPM 开发 VueJS 应用程序的最佳实践......?