簡體   English   中英

shasum檢查失敗-安裝hubot和npm

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM