在 ubuntu 上安装 hubot 时出错
Error while installing hubot on ubuntu
当我运行yo hubot
出现以下错误
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "hubot"
"hubot-scripts" "hubot-diagnostics" "hubot-help" "hubot-heroku-keepalive" "hubot-google-images"
"hubot-google-translate" "hubot-pugme" "hubot-maps" "hubot-redis-brain"
"hubot-rules" "hubot-shipit" "--save"
为什么会这样?我试过 运行ning sudo npm install hubot-rules
但它似乎不起作用。请帮忙!
原来您需要拥有 ~/.npm
目录。您可以 运行 此命令来执行此操作:
$ sudo chown -R $(whoami) "$HOME/.npm"
当我运行yo hubot
出现以下错误
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "hubot"
"hubot-scripts" "hubot-diagnostics" "hubot-help" "hubot-heroku-keepalive" "hubot-google-images"
"hubot-google-translate" "hubot-pugme" "hubot-maps" "hubot-redis-brain"
"hubot-rules" "hubot-shipit" "--save"
为什么会这样?我试过 运行ning sudo npm install hubot-rules
但它似乎不起作用。请帮忙!
原来您需要拥有 ~/.npm
目录。您可以 运行 此命令来执行此操作:
$ sudo chown -R $(whoami) "$HOME/.npm"