ruby-on-railsjenkinshomebrewyarnpkglinuxbrew

Error: parent directory is world writable but not sticky


I'm running into:

Error: parent directory is world writable but not sticky

While trying to do:

brew install yarn

Error: parent directory is world writable but not sticky
Please report this bug:
https://github.com/Linuxbrew/brew/blob/master/docs/Troubleshooting.md#troubleshooting
/var/lib/jenkins/.linuxbrew/Library/Homebrew/vendor/portable-ruby/2.0.0-p648/lib/ruby/2.0.0/tmpdir.rb:92:in `mktmpdir'

Does anybody know how to resolve this?


Solution

  • It is a permission problem, When I am trying to install brew install yarn --without-node, Got this error, on my Mac OSx Sierra

    First, find out where is your tmp directory using ls -ld /tmp When I ran this command, got the output in following way,

    ls -ld /tmp
    lrwxr-xr-x@ 1 root  wheel  11 Jan 28  2017 /tmp -> private/tmp
    

    which means tmp directory is using private/tmp So try giving the permission by using following command

    sudo chmod +t /private/tmp