Skip to content

npx create-react-app errors: spawn ENOENT #7347

Closed
@Eric-Johnston

Description

@Eric-Johnston

Describe the bug

Using npx create-react-app causes a "spawn enoent" error that points to my mongoDB folder. This only began after I installed mongoDB.

Did you try recovering your dependencies?

Not relevant, I can't even start a project.

Which terms did you search for in User Guide?

spawn, ENOENT, mongodb

Environment

Using Windows 10, node version 10.16.0.

$ npx create-react-app client
spawn C:\Program Files\MongoDB\Server\4.0\bin ENOENT

Seems I receive the same error using this command as well.

Steps to reproduce

(Write your steps here:)

  1. Install mongoDB
  2. run command 'npx create-react-app client'
  3. receive this error:
    $ npx create-react-app client
    spawn C:\Program Files\MongoDB\Server\4.0\bin ENOENT

Expected behavior

I should be able to create a react app without issue.

Actual behavior

I'm receiving this error:

$ npx create-react-app --info
spawn C:\Program Files\MongoDB\Server\4.0\bin ENOENT

Reproducible demo

I have no idea how to reproduce this on another machine. I was able to install mongoDB on a separate computer and I don't have this issue. I assume the vast majority of people are able to install mongoDB on their machine without experiencing this issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions