Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows & Android: react native server crashes very often

Tags:

react-native

 ERROR  EPERM: operation not permitted, lstat '...\.idea\workspace.xml___jb_old___'
{"errno":-4048,"code":"EPERM","syscall":"lstat","path":"...\.idea\\workspace.xml___jb_old___"}
Error: EPERM: operation not permitted, lstat 'app\.idea\workspace.xml___jb_old___'
    at Error (native)

After that I should again do:

npm start

How to resolve this quite annoying problem? Thanks

like image 997
pvllnspk Avatar asked Aug 01 '16 14:08

pvllnspk


People also ask

Can I get Windows for free?

Microsoft allows anyone to download Windows 10 for free and install it without a product key. It'll keep working for the foreseeable future, with only a few small cosmetic restrictions.

Will there be a Windows 12?

Assuming Microsoft sticks to the three-year update cycle Windows Central's Zac Bowden reports, Windows 12 would be released at some point in 2024.

Is Windows a operating system?

Microsoft Windows, also called Windows and Windows OS, computer operating system (OS) developed by Microsoft Corporation to run personal computers (PCs). Featuring the first graphical user interface (GUI) for IBM-compatible PCs, the Windows OS soon dominated the PC market.

Will be there Windows 11?

Windows 11 feature updates will release in the second half of the calendar year and will come with 24 months of support for Home, Pro, Pro for Workstations, and Pro Education editions; 36 months of support for Enterprise and Education editions.


4 Answers

Solution:

How to fix the file permissions, after loading end react-native start

First, Go to android folder

cd android

Now clean the project...

gradlew clean //for Mac users, change gradlew to ./gradlew

Now run the build process again in the root folder cd .. react-native run-android

like image 122
llioor Avatar answered Oct 17 '22 08:10

llioor


I think it's the problem of 'save write', I am using Webstorm, uncheck "File->Settings->System Settings->sychronization->use safe write" to see if it helps you.

like image 42
user6795391 Avatar answered Oct 17 '22 10:10

user6795391


Basically it looks like windows bug on react packager. When you disable Hot Reloading, it should be stopped. If not, can you try "npm cache clean" before run "react-native run-android", please? Also you can try to run on administrator. If these are not working, maybe it's about Antivirus app.

Also can you add ".idea" folder to your github ignore file to try? And are you trying to run it from Webstorm (or any eclipse-based platform) directly or terminal?

like image 7
the_bluescreen Avatar answered Oct 17 '22 09:10

the_bluescreen


Closing SourceTree did the trick for me. Once I pushed my changes to the repository also crashed server (I suppose GitKraken has the same effect).

like image 2
EliSherer Avatar answered Oct 17 '22 08:10

EliSherer