# [NVM & Xcode error Solution] node: command not found _ Command PhaseScriptExecution failed with a nonzero exit code - Permission denied

## 1. Problem

When i make a program on Xcode, i saw a error. This makes problem. I cannot build because of this problem.

Command PhaseScriptExecution failed with a nonzero exit code" - "Permission denied"


### 2. Solution

In my case, i used nvm on my laptop. Under command solve this problem. I saw this(node: command not found) comments and found solution.

when you run /bin/sh from your terminal it’s picking up the PATH from the parent shell, which allows node to work. Different approach then, try (from your usual terminal where node is working):

This problem is caused by /bin/sh cannot find PATH. Under command makes node on /usr/local/bin directory. Before run this command, i couldn’t find node.

$ln -s$(which node) /usr/local/bin/node


Thanks! I want to hope you can solve your problem well!

reference

• https://github.com/realm/realm-js/issues/1448