简体   繁体   English

尝试通过 npm 安装 deepstream.io

[英]Trying to install deepstream.io via npm

I installed deepstreamhub via npm package, while using commands on node.js command prompt i got some error.我通过 npm 包安装了 deepstreamhub,在 node.js 命令提示符上使用命令时出现了一些错误。 error:-no git binary found in $PATH.错误:-在 $PATH 中找不到 git 二进制文件。 I think i have properly installed npm package but i got this error while giving the commands(npm install deepstream.io).我想我已经正确安装了 npm 包,但是在给出命令时出现了这个错误(npm install deepstream.io)。 I also searched for git folder but nowhere find that.我还搜索了 git 文件夹,但没有找到。

npm ERR: code ENOGIT npm ERR: error while executing: npm ERR: undefined ls-remoten -h -t ssh://git@github.com/uNetworking npm ERR: No git binary found in $PATH npm ERR: Failed using git. npm ERR:代码 ENOGIT npm ERR:执行时出错:npm ERR:未定义 ls-remoten -h -t ssh://git@github.com/uNetworking npm ERR:在 $PATH 中找不到 git 二进制文件 npm ERR:使用 git 失败. npm ERR: Please check if you have git installed and in your path. npm ERR:请检查您是否安装了 git 并在您的路径中。 npm ERR: A complete log of this run can be found in: npm ERR: C:\\users\\raki\\AppData\\Roaming\\npm-cache_logs\\2019-04-18T06 npm ERR:可以在以下位置找到此运行的完整日志: npm ERR: C:\\users\\raki\\AppData\\Roaming\\npm-cache_logs\\2019-04-18T06

seems you don't have git installed which some dependencies use. 似乎你没有安装某些依赖项使用的git。 You can try using npm install —production deepstream.io and if that gives same error you can use the binary from https://github.com/deepstreamIO/deepstream.io/releases/tag/v3.2.4 , install git or look at different install options for distributions on deepstream.io 您可以尝试使用npm install -production deepstream.io,如果出现相同的错误,您可以使用https://github.com/deepstreamIO/deepstream.io/releases/tag/v3.2.4中的二进制文件,安装git或查看deepstream.io上发行版的不同安装选项

It's npm install @deepstream/server for the server.这是npm install @deepstream/servernpm install @deepstream/server server 。

And npm install @deepstream/client for the client.并为客户端npm install @deepstream/client client 。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM