Another active Homebrew process is already in progress

akaliza picture akaliza · Sep 30, 2016 · Viewed 64.2k times · Source

When I try to do this:

brew install node

I get this message:

 /usr/local/Homebrew/Library/Homebrew/utils/lock.sh: line 19: /usr/local/var/homebrew/locks/update: Permission denied
-e:1:in `initialize': Bad file descriptor (Errno::EBADF)
    from -e:1:in `new'
    from -e:1:in `<main>'
Error: Another active Homebrew process is already in progress.
Please wait for it to finish or terminate it to continue.
Error: Permission denied - /usr/local/var/homebrew/locks/node.brewing

Any idea on how to solve this?

Answer

omikes picture omikes · Nov 7, 2016

If the above answer does not resolve your problem try removing the homebrew process locks with this command:

rm -rf /usr/local/var/homebrew/locks