安装时遇到问题 "mobius-client-js"

Trouble Installing "mobius-client-js"

继续安装mobius-client-js失败

C:\WINDOWS\system32>yarn add @mobius-network/mobius-client-js
yarn add v1.12.3
[1/4] Resolving packages...
[2/4] Fetching packages...
error @mobius-network/mobius-client-js@0.5.0: The engine "node" is incompatible with this module. Expected version ">=4 <=9". Got "10.14.1"
error Found incompatible module

根据 Yarn 的文档,您可以使用以下方法添加:

您还可以指定来自不同位置的包:

yarn add package-name installs the package from the npm registry unless you have specified another one in your package.json.

yarn add file:/path/to/local/folder installs a package that is on your local file system. This is useful to test out other packages of yours that haven’t been published to the registry.

yarn add file:/path/to/local/tarball.tgz installs a package from a gzipped tarball which could be used to share a package before publishing it.

yarn add <git remote url> installs a package from a remote git repository.

yarn add <git remote url>#<branch/commit/tag> installs a package from a remote git repository at specific git branch, git commit or git tag.

yarn add https://my-project.org/package.tgz installs a package from a remote gzipped tarball.

None 正在工作...任何帮助都会很棒。

根据您的错误信息:

The engine "node" is incompatible with this module. Expected version ">=4 <=9". Got "10.14.1"

看起来你是 运行 NodeJS 10.14.1,但是 mobius-client 需要 4[= 之间的 NodeJS 版本20=] 和 9。您应该检查该库是否有兼容版本,或者使用 nvm 之类的东西切换到以前版本的节点。