Last Updated: February 25, 2016
·
809
· jm2dev

Node 0.10.0 and Xcode Command Lines fix

After installing node.js v 0.10.0, and changing /usr/lib/node_modules permissions to my preferred user to avoid sudo for npm installations, I found npm failed to install modules because it couldn't find Xcode.

As I don't use Xcode, but I installed the command line tools, the fix is:

sudo xcode-select -switch /

1 Response
Add your response

Update: I came across to the same issue running "npm install" to update node modules, and it seemed the path needs an update so please now run:

sudo xcode-select --switch /usr/bin

over 1 year ago ·