加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

无法安装hubot – npm依赖关系未满足

发布时间:2020-12-14 04:31:59 所属栏目:百科 来源:网络整理
导读:在尝试部署hubot时,npm不断抱怨未满足的依赖关系。文档没有解释如何解决这个问题。 yum install npm --enablerepo=epelyum install nodejs --enablerepo=epelcd /optgit clone https://github.com/github/hubot.gitcd hubot/./bin/hubot --create acebotnpm
在尝试部署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安装之前运行npm install -g hubot咖啡脚本似乎已经过了这个错误。在发布答案之前,我需要进行验证

我不知道为什么它不起作用,但是我在Centos 6.3机器上安装保镖时遇到了类似的问题。 Yum已经从EPEL中继承了2个,但版本检测不起作用。 “sudo npm install -g inherited”安装了继承的版本,工作版本报告和bower / grunt-cli之后安装好。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读