Skip to content

Cannot find module 'tar-pack' #5015

Closed
Closed
@Sxubas

Description

@Sxubas

Is this a bug report?

Yes

Did you try recovering your dependencies?

not applicable

Which terms did you search for in User Guide?

(google/issue search) 'cannot find module', 'tar-pack'

Environment

npm -v: 5.8.0
SO: Windows 10 - 64bit

Not copied directly to my clipboard, but got this on powershell:

D:\...\react> npx create-react-app --info
npx: installed 1 in 1.26s
Path must be a string. Received undefined
npx: installed 67 in 2.535s
C:\Users\Dell\AppData\Roaming\npm-cache\_npx\19464\node_modules\create-react-app\index.js
Cannot find module 'tar-pack'
D:\...\react>

Steps to Reproduce

  1. Try to create a react app on a new windows pc
  2. npx create-react-app my-app

Expected Behavior

Expected new folder with react scaffold code.

Actual Behavior

App directory not created, got the following result:

D:\...\react> npx create-react-app my-app
npx: installed 1 in 1.287s
Path must be a string. Received undefined
npx: installed 67 in 2.619s
C:\Users\Dell\AppData\Roaming\npm-cache\_npx\9148\node_modules\create-react-app\index.js
Cannot find module 'tar-pack'
D:\...\react>

Reproducible Demo

npm -v: 5.8.0
SO: Windows 10 - 64bit

Command:
npx create-react-app my-app

Thought it was npx fault, so also tried:

npm install -g create-react-app
create-react-app my-app

I get the same result for both alternatives.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions