Adding following line to .xcode.env file did the job:
.xcode.env
export NODE_BINARY=`which node`
Of course we need to have node installed first.
node