在我的mac OS X终端安装heroku toolbelt后,当我给她herkou --version或任何heroku命令时它会显示我
$ heroku --version
/usr/local/heroku/lib/heroku/jsplugin.rb:108: warning: Insecure world writable dir /usr/local in PATH, mode 040777
heroku-cli: Adding dependencies...
▸ Get https://cli-assets.heroku.com/node/v5.7.0/node-v5.7.0-darwin-x64.tar.gz: dial tcp: lookup cli-assets.heroku.com on 192.168.192.10:53: cannot unmarshal DNS message
done
heroku-cli: Installing core plugins...
▸
▸ fork/exec bin/node: no such file or directory
heroku-cli: Installing core plugins (retrying)...
▸ Error installing package.
▸
▸ Try running again with GODE_DEBUG=info to see more output.
对于样品我给了我的终端图像。
答案 0 :(得分:3)
您可能需要修复/ usr / local目录权限。不确定你是哪个OS X版本。请尝试使用“磁盘工具”来修复权限。
https://support.apple.com/en-us/HT201560
我认为它应该是755而不是777(这是世界可写的)
希望有所帮助!