Reputation: 1
--> 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
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