startPMD / ReactError

0 stars 0 forks source link

Error React node:fs:1334 #1

Open startPMD opened 1 year ago

startPMD commented 1 year ago

`node:fs:1334 handleErrorFromBinding(ctx); ^

Error: EPERM: operation not permitted, mkdir 'D:\my-app' at Object.mkdirSync (node:fs:1334:3) at Object.module.exports.makeDirSync (C:\Users\Jose Andres\AppData\Local\npm-cache_npx\c67e74de0542c87c\node_modules\fs-extra\lib\mkdirs\make-dir.js:101:15) at createApp (C:\Users\Jose Andres\AppData\Local\npm-cache_npx\c67e74de0542c87c\node_modules\create-react-app\createReactApp.js:255:6) at C:\Users\Jose Andres\AppData\Local\npm-cache_npx\c67e74de0542c87c\node_modules\create-react-app\createReactApp.js:226:9 at processTicksAndRejections (node:internal/process/task_queues:96:5) { errno: -4048, syscall: 'mkdir', code: 'EPERM', path: 'D:\my-app' } Node.js v{numberVersion}`

startPMD commented 1 year ago

Solution 1: Uninstall npm ["npm uninstall -g create-react-app"] then try to create app [Perform this in E drive as per your image) If Solution 1 do not work try Solution 2 Solution 2: Try to create react app in different drive (D or C) it will definitely work