Skip to content

Error: Cannot find module 'react-scripts/scripts/init.js' #9650

Description

@sammysmart95

I can't tell what could be the issue. I want to create a new project with npx create-react-app client but keep getting this error, I tried cleaning my cache and updating my create-react-app to 3.4.1 yet still getting same issue... Please i need help.

Error: Cannot find module 'react-scripts/scripts/init.js'
Require stack:

  • C:\Users\tc\Desktop\Bookstore\client[eval]
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
    at Function.Module._load (internal/modules/cjs/loader.js:841:27)
    at Module.require (internal/modules/cjs/loader.js:1025:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at [eval]:2:20
    at Script.runInThisContext (vm.js:120:18)
    at Object.runInThisContext (vm.js:309:38)
    at Object. ([eval]-wrapper:10:26)
    at Module._compile (internal/modules/cjs/loader.js:1137:30)
    at evalScript (internal/process/execution.js:94:25) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [ 'C:\Users\tc\Desktop\Bookstore\client\[eval]' ]
    }

Aborting installation.
node has failed.

Deleting generated file... node_modules
Deleting generated file... package.json
Deleting generated file... yarn.lock
Deleting client/ from C:\Users\tc\Desktop\Bookstore
Done.

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