作为调试过程的一部分,并且在尝试解决另一个问题时,我偶然发现了以下内容:
[Busy] Launching SocketCluster
1538304734910 - Origin: Worker (PID 43804)
[Error] Error: Compilation of µWebSockets has failed and there is no pre-compiled binary available for your system. Please install a supported C++11 compiler and reinstall the module 'uws'.
at native (/Users/antonmladenov/Documents/Coding Fitness/GraphQL/client/node_modules/uws/uws.js:38:19)
at Object.<anonymous> (/Users/antonmladenov/Documents/Coding Fitness/GraphQL/client/node_modules/uws/uws.js:42:3)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:20:18)
at new SCServer (/Users/antonmladenov/Documents/Coding Fitness/GraphQL/client/node_modules/socketcluster-server/scserver.js:96:18)
我特别关注两个软件包-
uws
:(/node_modules/uws/uws.js:38:19
); socketcluster-server
:(/node_modules/socketcluster-server/scserver.js:96:18
)因此,我手动寻找它们,遍历了node_modules
的整个软件包树,而这些软件包根本不在那儿。
我的问题是: