Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/38.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js 访问不存在的属性';焊盘标高';循环依赖项中模块导出的数量_Node.js_Npm - Fatal编程技术网

Node.js 访问不存在的属性';焊盘标高';循环依赖项中模块导出的数量

Node.js 访问不存在的属性';焊盘标高';循环依赖项中模块导出的数量,node.js,npm,Node.js,Npm,我只是>npmi-gphonegap@9.0.0和>phonegap--版本 它不仅表示9.0.0,而且还表示: (node:18392) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency (Use `node --trace-warnings ...` to show where the warning was created) 当我>节点--跟踪

我只是
>npmi-gphonegap@9.0.0
>phonegap--版本

它不仅表示
9.0.0
,而且还表示:

(node:18392) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
当我
>节点--跟踪警告…
时,我得到了这个:

internal/modules/cjs/loader.js:883
  throw err;
  ^

Error: Cannot find module 'C:\Users\twori\...'
[90m    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)[39m
[90m    at Function.Module._load (internal/modules/cjs/loader.js:725:27)[39m
[90m    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)[39m
[90m    at internal/main/run_main_module.js:17:47[39m {
  code: [32m'MODULE_NOT_FOUND'[39m,
  requireStack: []
}
我只安装并检查了版本。为什么phonegap模块抛出此错误?

我的老师和其他学生对此很满意,但只有我什么也做不了。

我在通过VS代码终端运行命令“react native run android”时遇到了同样的问题,但通过PowerShell运行时管理工作正常

✅ 已解决的根本原因 在循环依赖项内导出


节点版本太高。之前,使用的是最新版本的14+版本。在切换回12版本之后,就不会有这样的问题了

Mac命令

sudo n 12.0.0

您使用的是哪个节点版本?请检查使用节点-这并不能真正回答问题。如果您有不同的问题,可以单击以提问。一旦你有足够的时间,你也可以吸引更多的注意力这可能是一个注释而不是答案。如果您还没有
n
,请先
npm安装-g n
。还有,我认为你不应该去苏多