Error: Command failed with ENOENT: yarn install\nspawn yarn install ENOENT
See original GitHub issueGetting below error while trying to create redwood app under windows ! node -v v13.13.0 yarn -v 1.22.5
C:\myredwood>yarn create redwood-app ./redwoodblog yarn create v1.22.5 [1/4] Resolving packages… [2/4] Fetching packages… [3/4] Linking dependencies… [4/4] Building fresh packages…
success Installed “create-redwood-app@0.19.1” with binaries: - create-redwood-app √ Creating Redwood app √ Creating directory ‘C:\myredwood\redwoodblog’ √ Downloading latest release √ Extracting latest release √ Clean up
Installing packages √ Checking node and yarn compatibility × Running
yarn install
… (This could take a while) → info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Error: Command failed with ENOENT: yarn install spawn yarn install ENOENT error Couldn’t find the binary git yarn install v1.22.5 [1/5] Validating package.json… [2/5] Resolving packages… [3/5] Fetching packages… info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. at notFoundError (C:\Users\elmuzamh\AppData\Local\Yarn\Data\global\node_modules\cross-spawn\lib\enoent.js:6:26) at verifyENOENT (C:\Users\elmuzamh\AppData\Local\Yarn\Data\global\node_modules\cross-spawn\lib\enoent.js:40:16) at ChildProcess.cp.emit (C:\Users\elmuzamh\AppData\Local\Yarn\Data\global\node_modules\cross-spawn\lib\enoent.js:27:25) at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) { code: ‘ENOENT’, errno: ‘ENOENT’, syscall: ‘spawn yarn install’, path: ‘yarn install’, spawnargs: [], originalMessage: ‘spawn yarn install ENOENT’, shortMessage: ‘Command failed with ENOENT: yarn install\nspawn yarn install ENOENT’, command: ‘yarn install’, exitCode: undefined, signal: undefined, signalDescription: undefined, stdout: ‘yarn install v1.22.5\n’ + ‘[1/5] Validating package.json…\n’ + ‘[2/5] Resolving packages…\n’ + ‘[3/5] Fetching packages…\n’ + ‘info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.’, stderr: “error Couldn’t find the binary git”, failed: true, timedOut: false, isCanceled: false, killed: false, context: [Object: null prototype] {} } error Command failed. Exit code: 1 Command: C:\Users\elmuzamh\AppData\Local\Yarn\bin\create-redwood-app Arguments: ./redwoodblog Directory: C:\myredwood Output:
info Visit https://yarnpkg.com/en/docs/cli/create for documentation about this command.
C:\myredwood>node -v v13.13.0
C:\myredwood>yarn -v 1.22.5
C:\myredwood>
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (5 by maintainers)
@RobertBroersma Ah, I’m a dumbass, I thought you had a package that checked if it the repo was in
git
ormercurial
but I see you’re just using trying to run them in a shell.It looks like you may need to install git
I don’t know why git is a requirement, @RobertBroersma do you think this has something to do with those checks you added to the test suite? If so, I would really like to remove that since it makes containerisation a bit more complicated.