gpt4 book ai didi

node.js - 无法在ubuntu中安装yarn(fsevents@1.2.4 : The platform "linux" is incompatible with this module)

转载 作者:太空宇宙 更新时间:2023-11-04 03:17:45 27 4
gpt4 key购买 nike

我从 Github 克隆了一个项目并按照初始说明进行操作,它显示了如下所述的错误。

我试图理解它并谷歌它,然后我使用 nvm 多次更改了我的 NodeJS 版本,但问题没有解决,错误没有得到修复。

info fsevents@1.2.4: The platform "linux" is incompatible with this 
module.
info "fsevents@1.2.4" is an optional dependency and failed
compatibility check. Excluding it from installation.
error get-caller-file@2.0.1: The engine "node" is incompatible with
this module. Expected version "6.* || 8.* || >= 10.*".
error An unexpected error occurred: "Found incompatible module".
info If you think this is a bug, please open a bug report with the
information provided in "/home/ongraph/Desktop/node/my-
business/frontend/shared/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation
about this command.
error An unexpected error occurred: "Command failed.
Exit code: 1
Command: sh
Arguments: -c cd frontend/shared && yarn install
Directory: /home/ongraph/Desktop/node/my-business
Output:
".
info If you think this is a bug, please open a bug report with the
information provided in
"/home/ongraph/Desktop/node/my-business/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation
about this command.
error An unexpected error occurred: "Command failed.
Exit code: 1
Command: sh
Arguments: -c yarn install && yarn install-backend &&
yarn install-shared && yarn install-web && yarn install-native
Directory: /home/ongraph/Desktop/node/my-business
Output:
".
info If you think this is a bug, please open a bug report with the
information provided in "/home/ongraph/Desktop/node/my-
business/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation
about this command.
error An unexpected error occurred: "Command failed.
Exit code: 1
Command: sh
Arguments: -c yarn install-all && yarn knex migrate:latest && yarn
generate-schema --ignore-engines

屏幕截图:

Screenshot

最佳答案

您正在寻找错误的东西:) fsevents 是可选的,您无需担心它。相反,请关注这一点:

error get-caller-file@2.0.1: The engine "node" is incompatible with this 
module. Expected version "6.* || 8.* || >= 10.*". error An unexpected
error occurred: "Found incompatible module".

该错误非常具有描述性。请安装正确的 Node 版本,然后就可以开始了!如果您遇到 Node 版本冲突的问题(如果您正在处理具有不同需求的多个项目),请转到:https://github.com/creationix/nvm并安装 nvm 以并行管理多个 Node 安装。

关于node.js - 无法在ubuntu中安装yarn(fsevents@1.2.4 : The platform "linux" is incompatible with this module),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54034469/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com