[英]shasum check failed -installing hubot and npm
在Xubuntu上执行此命令时,我遇到一些错误;
npm install -g yo generator-hubot
按照这篇文章的说明
https://arthacker.net/how-to-install-hubot-on-ubuntu-14-04-lts-de3263cead51#.2c45h2a4f
我认为当我到达必须执行的步骤时,我的错误可能是在跳过命令; 须藤ln -s / usr / bin / nodejs / usr / bin / node
但是我遇到一个错误(文件存在),因此我认为这很好,所以我转到了上面提到的产生错误的以下步骤。
root@sa-VPCW11S1E:/home/sa# npm install -g yo generator-hubot
npm WARN deprecated CSSselect@0.4.1: the module is now available as 'css-select'
npm WARN deprecated CSSwhat@0.4.7: the module is now available as 'css-what'
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm ERR! Linux 4.4.0-45-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "yo" "generator-hubot"
npm ERR! node v7.0.0
npm ERR! npm v3.10.9
npm ERR! shasum check failed for /tmp/npm-4682-604231ef/registry.npmjs.org/rx/-/rx-2.5.3.tgz
npm ERR! Expected: 21adc7d80f02002af50dae97fd9dbf248755f566
npm ERR! Actual: 84e6ac5ecfa4396589730d136d466c7e41c15a4a
npm ERR! From: https://registry.npmjs.org/rx/-/rx-2.5.3.tgz
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /home/sa/npm-debug.log
root@sa-VPCW11S1E:~# npm -v
3.10.9
root@sa-VPCW11S1E:~# node -v
v7.0.0
使用命令解决问题;
npm cache clean
之后重复命令;
npm install -g yo generator-hubot
这使您的发电机工作。 尽管我仍然很难与Hubot进行交互。 (启动hubot并发送命令(例如hubot帮助)后无响应)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.