npm WARN notsup Not compatible with your version of node/npm: yargs@17.5.1 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/@frangoteam/fuxa/node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN notsup Unsupported engine for yargs-parser@21.1.1: wanted: {"node":">=12"} (current: {"node":"10.24.0","npm":"6.14.11"}) npm WARN notsup Not compatible with your version of node/npm: yargs-parser@21.1.1 npm WARN notsup Unsupported engine for npmlog@6.0.2: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16.0.0"} (current: {"node":"10.24.0","npm":"6.14.11"}) npm WARN notsup Not compatible with your version of node/npm: npmlog@6.0.2 npm WARN notsup Unsupported engine for are-we-there-yet@3.0.1: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16.0.0"} (current: {"node":"10.24.0","npm":"6.14.11"}) npm WARN notsup Not compatible with your version of node/npm: are-we-there-yet@3.0.1 npm WARN notsup Unsupported engine for gauge@4.0.4: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16.0.0"} (current: {"node":"10.24.0","npm":"6.14.11"}) npm WARN notsup Not compatible with your version of node/npm: gauge@4.0.4
时间: 2023-08-27 12:11:59 浏览: 222
这段信息是 npm 给出的警告信息,表示某些依赖包不兼容你当前使用的 node.js 和 npm 版本。其中最常见的警告是 "not compatible with your version of node/npm",这意味着你需要升级 node.js 和/或 npm 版本来解决这些警告。你可以通过运行 "node -v" 和 "npm -v" 命令来查看当前的 node.js 和 npm 版本。如果你想解决这些警告,可以尝试升级你的 node.js 和 npm 版本,或者升级依赖包的版本以适配你当前的 node.js 和 npm 版本。
相关问题
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN notsup Unsupported engine for yargs-parser@21.1.1: wanted: {"node":">=12"} (current: {"node":"10.24.0","npm":"6.14.11"}) npm WARN notsup Not compatible with your version of node/npm: yargs-parser@21.1.1 npm WARN notsup Unsupported engine for npmlog@6.0.2: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16.0.0"} (current: {"node":"10.24.0","npm":"6.14.11"}) npm WARN notsup Not compatible with your version of node/npm: npmlog@6.0.2 npm WARN notsup Unsupported engine for are-we-there-yet@3.0.1: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16.0.0"} (current: {"node":"10.24.0","npm":"6.14.11"}) npm WARN notsup Not compatible with your version of node/npm: are-we-there-yet@3.0.1 npm WARN notsup Unsupported engine for gauge@4.0.4: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16.0.0"} (current: {"node":"10.24.0","npm":"6.14.11"}) npm WARN notsup Not compatible with your version of node/npm: gauge@4.0.4
这些警告是由于您正在使用的软件包需要特定的操作系统和Node.js版本,但您当前的操作系统和Node.js版本与软件包要求不匹配,因此npm会发出警告。这些警告不会影响软件包的安装,但在运行时可能会导致问题。要解决这些警告,您可以尝试更新Node.js版本或使用软件包支持的操作系统版本。您也可以尝试安装软件包的先前版本,该版本可能与您的操作系统和Node.js版本兼容。
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules\vue-cli\node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) removed 233 packages in 3.09s
这是一个npm安装警告,它表示在安装vue-cli时,npm跳过了可选依赖项fsevents,并提示当前平台不支持fsevents。
fsevents是一个Mac OS X平台特有的文件系统事件监控工具,它常用于自动化构建工具中。由于它只能在Mac OS X平台上运行,因此在Windows平台上使用npm安装vue-cli时,会自动跳过fsevents这个可选依赖项。
这个警告并不会影响vue-cli的正常使用,因为fsevents只是一个可选依赖项,不是必须的。你可以忽略这个警告,或者手动安装fsevents(如果你的开发环境是Mac OS X平台)。
总之,这个警告并不是什么问题,只是提示你当前平台不支持fsevents这个可选依赖项。如果你的开发环境是Mac OS X平台,你可以手动安装fsevents以获得更好的构建性能。
阅读全文