user13907428
user13907428

Reputation: 1

Issues with creating file with 'npx-create-react-app'

--> npx create-react-app my-app npx: installed 98 in 7.827s

EROFS: read-only file system, mkdir '/my-app'

--> cd my-app cd: no such file or directory: my-app

When trying to get started, it doesn't seem to create an app. I had used npm create-react-app my-app before however global install are no longer supported. If I then mkdir my-app it again says "Read-only file system"

Upvotes: 0

Views: 857

Answers (1)

Arnab
Arnab

Reputation: 961

It seens like an issue with permission. The directory where npx is trying to create a folder named my-app is in read only state. Try changing the permission.

if you are using lynux, you can try
sudo chmod -R 777 The -R (or --recursive) options make it recursive.

Upvotes: 1

Related Questions