react native android 打包Couldn't follow symbolic link报错



  • react native android在模拟器或真机都能调试,打包却报错了*,What went wrong:
    Could not list contents of '/Users/mrleonmark/Desktop/react-li/iwant1/iwant/node_modules/node-pre-gyp/node_modules/.bin/detect-libc'. Couldn't follow symbolic link.
    按照提示好像是文件找不到,根据提示去到 '/Users/mrleonmark/Desktop/react-li/iwant1/iwant/node_modules/node-pre-gyp/node_modules下,果然没有.bin/detect-libc,但是这个文件不是react native工程自带的吗?于是我又重新建立了个工程,发现node-pre-gyp/node_modules目录下,
    根本没有bin/detect-libc 这样的路径,有朋友知道是什么问题吗?



  • node-pre-gyp包文件缺失吧,重新install一下


登录后回复