You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: EROFS: read-only file system, mkdir '/my-app'
at Object.mkdirSync (fs.js:921:3)
at Object.mkdirsSync (/usr/local/lib/node_modules/create-react-app/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js:31:9)
at createApp (/usr/local/lib/node_modules/create-react-app/createReactApp.js:230:6)
at Object. (/usr/local/lib/node_modules/create-react-app/createReactApp.js:187:1)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:985:32)
at Function.Module._load (internal/modules/cjs/loader.js:878:14)
at Module.require (internal/modules/cjs/loader.js:1025:19)
at require (internal/modules/cjs/helpers.js:72:18) {
errno: -30,
syscall: 'mkdir',
code: 'EROFS',
path: '/my-app'
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi
My first attempt to learn React and came across the following error when I did this on Mac. Appreciate the help in sorting the issue
(base) Kalpanas-MacBook-Air:/ kalpana$ create-react-app my-app
/usr/local/lib/node_modules/create-react-app/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js:45
throw err0
^
Error: EROFS: read-only file system, mkdir '/my-app'
at Object.mkdirSync (fs.js:921:3)
at Object.mkdirsSync (/usr/local/lib/node_modules/create-react-app/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js:31:9)
at createApp (/usr/local/lib/node_modules/create-react-app/createReactApp.js:230:6)
at Object. (/usr/local/lib/node_modules/create-react-app/createReactApp.js:187:1)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:985:32)
at Function.Module._load (internal/modules/cjs/loader.js:878:14)
at Module.require (internal/modules/cjs/loader.js:1025:19)
at require (internal/modules/cjs/helpers.js:72:18) {
errno: -30,
syscall: 'mkdir',
code: 'EROFS',
path: '/my-app'
}
Beta Was this translation helpful? Give feedback.
All reactions