facebook / create-react-app

Set up a modern web app by running one command.
https://create-react-app.dev
MIT License
102.65k stars 26.81k forks source link

create-expo-app fails #13686

Open zaksenards opened 2 days ago

zaksenards commented 2 days ago

I get this error when trying to create a new expo-app

5183 verbose pkgid babel-plugin-react-compiler@0.0.0-experimental-7779988-20241007 5184 error code 1 5185 error path C:\Users\isaac\Documents\projects\Payjon\node_modules\babel-plugin-react-compiler 5186 error command failed 5187 error command C:\windows\system32\cmd.exe /d /s /c ./scripts/link-react-compiler-runtime.sh 5188 error '.' n�o � reconhecido como um comando interno 5188 error ou externo, um programa oper�vel ou um arquivo em lotes. 5189 silly unfinished npm timer reify 1728359810537 5190 silly unfinished npm timer reify:build 1728359826985 5191 silly unfinished npm timer build 1728359826987 5192 silly unfinished npm timer build:deps 1728359826987 5193 silly unfinished npm timer build:run:postinstall 1728359827074 5194 silly unfinished npm timer build:run:postinstall:node_modules/babel-plugin-react-compiler 1728359827074 5195 verbose cwd C:\Users\isaac\Documents\projects\Payjon 5196 verbose os Windows_NT 10.0.22631 5197 verbose node v20.16.0 5198 verbose npm v10.9.0 5199 verbose exit 1 5200 verbose code 1 5201 error A complete log of this run can be found in: C:\Users\isaac\AppData\Local\npm-cache_logs\2024-10-08T03_56_50_130Z-debug-0.log

zaksenards commented 2 days ago

I also tryed to reinstall node and expo and that was what i got

npm warn cleanup Failed to remove some directories [ npm warn cleanup [ npm warn cleanup 'C:\Users\isaac\AppData\Roaming\npm\node_modules\expo', npm warn cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\isaac\AppData\Roaming\npm\node_modules\expo\node_modules\@expo\vector-icons\build'] {npm warn cleanup errno: -4048, npm warn cleanup code: 'EPERM', npm warn cleanup syscall: 'rmdir', npm warn cleanup path: 'C:\Users\isaac\AppData\Roaming\npm\node_modules\expo\node_modules\@expo\vector-icons\build' npm warn cleanup } npm warn cleanup ], npm warn cleanup [ npm warn cleanup 'C:\Users\isaac\AppData\Roaming\npm\node_modules\expo\node_modules\@babel\template', npm warn cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\isaac\AppData\Roaming\npm\node_modules\expo\node_modules\@babel\template\node_modules'] { npm warn cleanup errno: -4048, npm warn cleanup code: 'EPERM', npm warn cleanup syscall: 'rmdir', npm warn cleanup path: 'C:\Users\isaac\AppData\Roaming\npm\node_modules\expo\node_modules\@babel\template\node_modules' npm warn cleanup } npm warn cleanup ], npm warn cleanup [ npm warn cleanup 'C:\Users\isaac\AppData\Roaming\npm\node_modules\expo\node_modules\@expo', npm warn cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\isaac\AppData\Roaming\npm\node_modules\expo\node_modules\@expo\cli\build\src\start\server'] { npm warn cleanup errno: -4048, npm warn cleanup code: 'EPERM', npm warn cleanup syscall: 'rmdir', npm warn cleanup path: 'C:\Users\isaac\AppData\Roaming\npm\node_modules\expo\node_modules\@expo\cli\build\src\start\server' npm warn cleanup } npm warn cleanup ], npm warn cleanup [ npm warn cleanup 'C:\Users\isaac\AppData\Roaming\npm\node_modules\expo', npm warn cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\isaac\AppData\Roaming\npm\node_modules\expo\node_modules\expo-modules-core\android\src\main\java\expo\modules\interfaces'] { npm warn cleanup errno: -4048, npm warn cleanup code: 'EPERM', npm warn cleanup syscall: 'rmdir', npm warn cleanup path: 'C:\Users\isaac\AppData\Roaming\npm\node_modules\expo\node_modules\expo-modules-core\android\src\main\java\expo\modules\interfaces' npm warn cleanup } npm warn cleanup ] npm warn cleanup ] npm error code 1 npm error path C:\Users\isaac\AppData\Roaming\npm\node_modules\expo\node_modules\babel-plugin-react-compiler npm error command failed npm error command C:\windows\system32\cmd.exe /d /s /c ./scripts/link-react-compiler-runtime.sh npm error '.' n�o � reconhecido como um comando interno npm error ou externo, um programa oper�vel ou um arquivo em lotes. npm error A complete log of this run can be found in: C:\Users\isaac\AppData\Local\npm-cache_logs\2024-10-08T04_21_52_809Z-debug-0.log

zaksenards commented 2 days ago

I can download the dependencies if i specify '--ignore-scripts' flag on npm install

Shafah0717 commented 20 hours ago

TRY THIS FIRST npm cache clean --force (IF ITS NOT WORKING) try to remove node modules package json by this command rm -rf node_modules package-lock.json //this will to remove node modules npm install // it will reinstall the node package