Skip to content

Can't install react-scripts with npm, but it does work with yarn #11531

@Manuelandro

Description

@Manuelandro

Describe the bug

When you launch npm install react-scripts, (i tried also in two blank projects), it throws an error:
npm ERR! Unexpected end of JSON input while parsing near '...EMgP/1hWdCwd2Fuk/dsP0'
Instead with Yarn add works properly

Did you try recovering your dependencies?

Yes, i tried with a blank project just after npm init

Steps to reproduce

  • create a new project
  • npm init
  • npm install react-scripts

Expected behavior

should install the package

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions