gpt4 book ai didi

hubot - 无法安装 hubot - 未满足 npm 依赖项

转载 作者:行者123 更新时间:2023-12-03 12:27:18 24 4
gpt4 key购买 nike

在尝试部署 hubot 时,npm 不断提示未满足的依赖项。该文档没有解释如何解决这个问题。

yum install npm --enablerepo=epel
yum install nodejs --enablerepo=epel
cd /opt
git clone https://github.com/github/hubot.git
cd hubot/
./bin/hubot --create acebot
npm install -g hubot coffee-script
...

npm http 200 https://registry.npmjs.org/formidable/-/formidable-1.0.14.tgz
npm http 200 https://registry.npmjs.org/uid2/-/uid2-0.0.2.tgz
/usr/bin/hubot -> /usr/lib/node_modules/hubot/bin/hubot
npm WARN unmet dependency /usr/lib/node_modules/block-stream requires inherits@'~2.0.0' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /usr/lib/node_modules/fstream requires inherits@'~2.0.0' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /usr/lib/node_modules/fstream-ignore requires inherits@'2' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /usr/lib/node_modules/fstream-npm requires inherits@'2' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /usr/lib/node_modules/glob requires inherits@'2' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /usr/lib/node_modules/npmconf requires inherits@'~2.0.0' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /usr/lib/node_modules/tar requires inherits@'2' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
coffee-script@1.6.3 /usr/lib/node_modules/coffee-script

packages.json 文件包含一个依赖项列表,我认为应该自动解决这些依赖项。
  "dependencies": {
"coffee-script": "1.6.3",
"optparse": "1.0.4",
"scoped-http-client": "0.9.8",
"log": "1.4.0",
"express": "3.3.4"
},

谁能解释一下为什么 npm 不能安装 hubot?

更新

我仍然不明白为什么它不工作,但运行 npm install运行前 npm install -g hubot coffee-script似乎克服了这个错误。在发布答案之前,我需要验证这一点

最佳答案

我不知道为什么它不起作用,但我在 Centos 6.3 机器上安装凉亭时遇到了类似的问题。 Yum 安装了从 EPEL 继承的 2,但版本检测不起作用。 “sudo npm install -g inherits”安装了一个带有工作版本报告的继承版本,之后很好地安装了bower/grunt-cli。

关于hubot - 无法安装 hubot - 未满足 npm 依赖项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20435793/

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