1. Install upx with brew: brew install upx 2. Unpack the binary: navigate to your project folder and run: upx -d node_modules/phantomjs/lib/phantom/bin/phantomjs