Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not list contents of .... Couldn't follow symbolic link. #288

Open
Balasnest opened this issue Oct 10, 2018 · 23 comments
Open

Could not list contents of .... Couldn't follow symbolic link. #288

Balasnest opened this issue Oct 10, 2018 · 23 comments

Comments

@Balasnest
Copy link

Balasnest commented Oct 10, 2018

Getting this error in android with doing release build.

cd android && ./gradlew assembleDevRelease

FAILURE: Build failed with an exception.

* What went wrong:
Could not list contents of '/.../node_modules/metro/node_modules/.bin/babylon'. Couldn't follow symbolic link.
@davekedar
Copy link

Tried everything mentioned here but still getting this error

image

@msand
Copy link

msand commented Feb 11, 2019

@msand
Copy link

msand commented Feb 11, 2019

dupe facebook/react-native#14417

@crobinson42
Copy link

rm -rf node_modules && npm install

@AnchalMulchandani
Copy link

Any solution for this??. I have also the same problem.

@davekedar
Copy link

@AnchalMulchandani you can open project in android studio and update buildsdk and target sdk to solve this

@AnchalMulchandani
Copy link

AnchalMulchandani commented Apr 18, 2019

1.We just need to delete the particular files(which is mentioned in the error) present inside ".bin" folder(nodemodule/node-pre-gyp/nodemodule/.bin/)
2. Clean and rebuild the app
3. Generate Signed apk

if we have run the bundle command before,then we will get the error of image duplicity-
for that

  1. we need to remove all the photos from android drawable folders

  2. Clean and rebuild the app

  3. Generate Signed apk

@jdnichollsc
Copy link

jdnichollsc commented Jul 3, 2019

Same issue here with RN 0.59.5:

> Task :app:bundleReleaseJsAndAssets FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Failed to capture fingerprint of input files for task ':app:bundleReleaseJsAndAssets' property '$1' during up-to-date check.
> Could not list contents of '/Users/jdnichollsc/builds/y9nRxChC/0/myapp/node_modules/.bin/needle'. Couldn't follow symbolic link.

@AnchalMulchandani
Copy link

@jdnichollsc You just need to delete the file present inside .bin folder.
just go to the respective path where the error file located and delete that.

and also make sure after deleting the file you have already deleted all the images from drawable folder , RN0.59 not support that and android automatically build the images for device in signed apk.

Thanks!

@reactdevrocks
Copy link

@AnchalMulchandani did not work the above solution. Please give me some solution to build signed apk.

@AnchalMulchandani
Copy link

@AnchalMulchandani did not work the above solution. Please give me some solution to build signed apk.

what issue you are facing?

@sagarv1997
Copy link

rm -rf node_modules && npm install

worked!

@kumarutsav111
Copy link

Just run:
rm -rf node_modules/metro/node_modules/.bin/babylon

for any other similar issues remove that file only
eg:
rm-rf /Users/kumarutsav111/Documents/OrtholiveProviderAppVijay/node_modules/.bin/uuid

@celodauane
Copy link

If rm -rf node_modules && npm install does not do the trick, run the following in your project dir: find . -type l -exec test ! -e {} \; -delete

@NirmalsinhRathod
Copy link

@dvuvne Buddy, you make my day. Thanks :)

@eisenheim94
Copy link

@dvuvne I've run it just in /node_modules/ folder and it is helped 👍

@zoe1026
Copy link

zoe1026 commented Nov 12, 2019

@dvuvne work for me, Thanks

@pavan168
Copy link

pavan168 commented Feb 15, 2020

If rm -rf node_modules && npm install does not do the trick, run the following in your project dir: find . -type l -exec test ! -e {} \; -delete

@dvuvne This worked. Thank you.

@Samiksha19
Copy link

If rm -rf node_modules && npm install does not do the trick, run the following in your project dir: find . -type l -exec test ! -e {} \; -delete

It worked for me.. thanks.. can you please tell me what exactly this command does? @dvuvne

@e3bmo3ty
Copy link

e3bmo3ty commented Mar 2, 2020

If rm -rf node_modules && npm install does not do the trick, run the following in your project dir: find . -type l -exec test ! -e {} \; -delete

thanks so much....worked for me.... but what is this command any way ? 🤒

@WALReactNative
Copy link

If rm -rf node_modules && npm install does not do the trick, run the following in your project dir: find . -type l -exec test ! -e {} \; -delete

This worked for me. Thank you so much!

@JamesXNelson
Copy link

find . -type l find all files of type link
-exec execute the following command:
test ! -e {} test if file found does not exist
\; termination symbol for -exec
-delete delete the broken link

@wutiange
Copy link

You can try to get through android studio first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests