react-native: Stuck in "Scanning folders for symlinks in..."
Environment
Environment:
OS: Windows 10
Node: 9.8.0
Yarn: Not Found
npm: 4.6.1
Watchman: Not Found
Xcode: N/A
Android Studio: Version 3.0.0.0 AI-171.4443003
Packages: (wanted => installed)
react: 16.2.0 => 16.2.0
react-native: 0.52.0 => 0.52.0
Expected Behavior
When I’m trying to install app to Android Emulator, this problem occurs;
Scanning folders for symlinks in C:\Users\Furkan\AwesomeProject\node_modules (30ms)
Actual Behavior
-npm already running -System Variables are OK -CMD (via Administrator) -Android 5.0.1 (API 21, All SDK components/Extras/Build Tools was installed) -adb devices;
List of devices attached
emulator-5554 device
PS C:\Users\Furkan\AwesomeProject> react-native run-android --deviceId emulator-5554
Scanning folders for symlinks in C:\Users\Furkan\AwesomeProject\node_modules (30ms)
(and Terminated)
Steps to Reproduce
-run “npm start” -run “.androidSDK/tools/emulator -avd Nexus6” -run “react-native run-android” (when Android booted)
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 10
- Comments: 41 (3 by maintainers)
problem seems solved after closing and opening the terminal and running the command
Upgrade the react-native package
This method 100% works
The issue is simply because of some previous process which wouldn’t have been properly terminated before. for ubuntu just find the process using
sudo lsof -i:8081
terminate the process bysudo -9 kill <your-process-id>
windows users can try by running cmd as admin then
netstat -ano | findstr :8081
terminate the process bytaskkill /PID <your-process-id> /F
hope this works cheers 😃
Update: It’s works well with ; Expo’s
npm start
and pressa
key to open emulatorBut
react-native run-android
not working.I don’t think that’s a solution. 😃 We may need a reasonable explanation of the cause of this bug.
i solve the problem like this
“Restarting” is not a solution. Must have a rational explanation.
Has this issue been addressed by any of the developers? It seems to be active and its something that is bothering a lot of users. Can we please get an update / some assistance?
Thanks
I have the same issue on Ubuntu
When I ran
react-native upgrade
command, CMD says me;Edit: Same with
npm install -g react-native-git-upgrade
@Dentrax you need to initialize the project first, following this steps
cd C:\Users\Furkan
react-native init AwesomeProject
cd AwesomeProject
react-native run-android
It looks like it’s packager running in the background is what causes this, closing the packager terminal will then correct the problem and restart packager.
I have the same problem on Windows 10 and React Native version 0.55.4
The problem for me was that the Metro Bundler (The window with title ‘node “…\local-cli\cli.js” start’) was open in the background from a previously terminated build.
After I closed that window, the new build process was able to spawn a new Metro Bundler and all proceeded fine from there.
Thanks for posting this! It looks like your issue may refer to an older version of React Native. Can you reproduce the issue on the latest stable release?
Thank you for your contributions.
How to Contribute • What to Expect from Maintainers