thecodingmachine / react-native-boilerplate

A React Native template for building solid applications 🐙, using JavaScript 💛 or Typescript 💙 (you choose).
https://thecodingmachine.github.io/react-native-boilerplate/
MIT License
4.75k stars 864 forks source link

[BUG]: Error: EPERM: operation not permitted, lstat #349

Closed ionwebs closed 1 year ago

ionwebs commented 1 year ago

react-native environment setup

Description

node:events:491 throw er; // Unhandled 'error' event ^

Error: EPERM: operation not permitted, lstat '\node_modules\react-native-reanimated\android\build\intermediates\cxx\Debug\543f3x24\obj\x86\libreanimated.so.tmpea04be6' Emitted 'error' event on NodeWatcher instance at: at \node_modules\metro-file-map\src\watchers\NodeWatcher.js:235:14 at FSReqCallback.oncomplete (node:fs:208:21) { errno: -4048, code: 'EPERM', syscall: 'lstat', path: '*\node_modules\react-native-reanimated\android\build\intermediates\cxx\Debug\543f3x24\obj\x86\libreanimated.so.tmpea04be6' }

Node.js v18.15.0 error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Version

0.68

On which OS this issue appear on?

Desktop OS

windows 11

victor20m commented 1 year ago

Try running the console (or vscode if you're using it) as admin.

arcelluceno11 commented 1 year ago

Try running the console (or vscode if you're using it) as admin.

Still doesn't work...

JeremyDolle commented 1 year ago

When this error appears? During the init command ? During the yarn install ? Can you provide the all trace ?

kangfredy commented 1 year ago

hi it has issue with latest react native 0.71.4 because metro issue stuck running even you closed. you can downgrade your react version to stable version https://www.npmjs.com/package/react-native?activeTab=versions

or if you are using windows try using this and put this command on bat file react-native run-android & react-native start --reset-cache