question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Command failed with ENOENT: yarn install\nspawn yarn install ENOENT

See original GitHub issue

Getting 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:closed
  • Created 3 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
peterpcommented, Sep 30, 2020

@RobertBroersma Ah, I’m a dumbass, I thought you had a package that checked if it the repo was in git or mercurial but I see you’re just using trying to run them in a shell.

1reaction
peterpcommented, Sep 30, 2020

It looks like you may need to install git

error Couldn’t find the binary 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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: spawn yarn ENOENT on vue create with a clean install ...
Version 4.5.6 Environment info N/A Steps to reproduce Globally install vue-cli Run vue create [myprojectname] What is expected?
Read more >
How do I debug "Error: spawn ENOENT" on node.js?
Spawn may emit the ENOENT error if the filename command (i.e, 'some-command') does not exist in at least one of the directories defined...
Read more >
How to fix the installing packages with yarn trace error spawn ...
The problem occurs when there is some problem with yarn. Either the installation is corrupted, there is no path set for the yarn,...
Read more >
How to Fix Node.js Error Message Spawn Yarn ENOENT
When installing the Ghost CMS via NPM and a command line on Linux and Ubuntu, users may run into the error/message: spawn yarn...
Read more >
Common errors | npm Docs
Broken npm installation; Random errors; No compatible version found; Permissions errors; Error: ENOENT, stat 'C:\Users\<user>\AppData\Roaming\npm' on ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found