grand-stack-starter
grand-stack-starter copied to clipboard
yarn create not working (but npx does)
I've just tried installing the app using yarn
, however it failed with the error…
Error: /Users/me/.config/yarn/global/node_modules/ios-deploy: Command failed.
It looks like this is something to do with Xcode…
$ yarn create --verbose grandstack-app grandstack
… various messages…
verbose 9.152597786 Error: /Users/me/.config/yarn/global/node_modules/ios-deploy: Command failed.
Exit code: 1
Command: ./src/scripts/check_reqs.js && xcodebuild
Arguments:
Directory: /Users/me/.config/yarn/global/node_modules/ios-deploy
Output:
stderr: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
at ProcessTermError.ExtendableBuiltin (/usr/local/Cellar/yarn/1.22.10/libexec/lib/cli.js:721:66)
at ProcessTermError.MessageError (/usr/local/Cellar/yarn/1.22.10/libexec/lib/cli.js:750:123)
at new ProcessTermError (/usr/local/Cellar/yarn/1.22.10/libexec/lib/cli.js:790:113)
at ChildProcess.<anonymous> (/usr/local/Cellar/yarn/1.22.10/libexec/lib/cli.js:25884:17)
at ChildProcess.emit (node:events:394:28)
at maybeClose (node:internal/child_process:1067:16)
at Socket.<anonymous> (node:internal/child_process:453:11)
at Socket.emit (node:events:394:28)
at Pipe.<anonymous> (node:net:662:12)
error /Users/me/.config/yarn/global/node_modules/ios-deploy: Command failed.
Exit code: 1
Command: ./src/scripts/check_reqs.js && xcodebuild
Arguments:
Directory: /Users/me/.config/yarn/global/node_modules/ios-deploy
I then tried to use npx
and that worked fine, so I'm anble to progress, but really would like ot know why the yarn
version didn't work, if anyone's able to advise?
Please excuse if this is a yarn
issue, rather than a grandtstack one. I'm not too familiar with node at this point.