“ node_modules”中的软件包很少。怎么样?为什么?哪里?

时间:2018-09-30 11:26:27

标签: javascript node.js debugging node-modules

作为调试过程的一部分,并且在尝试解决另一个问题时,我偶然发现了以下内容:

[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的整个软件包树,而这些软件包根本不在那儿。

我的问题是:

  1. 他们真的失踪了吗?
  2. 如果否,这些软件包在哪里?
  3. 如果是,为什么我看到它们的特定路径?

0 个答案:

没有答案