[
https://issues.apache.org/jira/browse/CB-9273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14628637#comment-14628637
]
Shazron Abdullah commented on CB-9273:
--------------------------------------
Your suggestion is even better!
I think a temporary PATH change works, I just tested it.
So, we change:
{code}
node cordova/lib/copy-www-build-step.js
{code}
To:
{code}
PATH=/usr/local/bin:~/.nvm/`nvm version`/bin:`xcode-select
--print-path`/usr/share/xcs/Node/bin:$PATH node
cordova/lib/copy-www-build-step.js
{code}
We could amend this to support "n" package manager as well:
https://github.com/tj/n
Not sure yet of the pathing for that.
> "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: [email protected]
For additional commands, e-mail: [email protected]