[ https://issues.apache.org/jira/browse/CB-9273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14629524#comment-14629524 ]
Sergey Shakhnazarov commented on CB-9273: ----------------------------------------- Also looks like we need a different path for *nvm*: {code} echo ~/.nvm/versions/node/'nvm version 2>/dev/null'/bin {code} instead of {code} ~/.nvm/`nvm version 2>/dev/null`/bin {code} Tested this with *nvm* 0.25.4. So the resulting script could be the following: {code} shellScript = "NODEJS_PATH=/usr/local/bin; NVM_NODE_PATH=~/.nvm/versions/node/`nvm version 2>/dev/null`/bin; N_NODE_PATH=`find /usr/local/n/versions/node/* -maxdepth 0 -type d 2>/dev/null | tail -1`/bin; XCODE_NODE_PATH=`xcode-select --print-path`/usr/share/xcs/Node/bin; PATH=$NODEJS_PATH:$NVM_PATH:$N_PATH:$XCODE_NODE_PATH:$PATH && node cordova/lib/copy-www-build-step.js"; {code} > "Copy www build phase" node is not found > ---------------------------------------- > > Key: CB-9273 > URL: https://issues.apache.org/jira/browse/CB-9273 > Project: Apache Cordova > Issue Type: Bug > Components: iOS > Environment: cordova-ios 4.x > Reporter: Shazron Abdullah > Attachments: xcode-build-phase-node.png > > > I have node installed using nvm, and the build phase cannot find node. > The path to node in nvm is in $PATH in Terminal. It may not be in Xcode's > environment variables. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org