Closed gsabran closed 4 weeks ago
From env: node: No such file or directory
it looks like node is not installed a global location that the Xcode run script can reach. Maybe try symlinking node as well
sudo ln -s `which node` /usr/local/bin
For me, running npm install
is what solved the issue. I had also run sudo ln -s
which node/usr/local/bin
before to be sure that was not the cause.
Yep, npm install
is run as part of a custom build script: https://github.com/github/CopilotForXcode/blob/a9ad824d0da3908f06bf90cc3c70b2e0d4c879f1/Copilot%20for%20Xcode.xcodeproj/project.pbxproj#L719
However, the PATH
Xcode uses for custom build scripts is fairly bare, hence the need to link things to standard locations like /usr/local/bin
ACK, then maybe sudo ln -s
which node/usr/local/bin
is what I was initially missing.
Makes sense I'll update DEVELOPMENT.md to mention that, thanks!
After running
sudo ln -s `which npm` /usr/local/bin
, I think you need to runnpm install
fromServer
to be able to build the app. The later step is not described in the DEVELOPMENT.mdVersions
Steps to reproduce
sudo ln -s `which npm` /usr/local/bin
has been runScreenshots
Logs
env: node: No such file or directory cp: Server/node_modules/@github/copilot-language-server/native/darwin-arm64/copilot-language-server: No such file or directory Command PhaseScriptExecution failed with a nonzero exit code