exp init Project [11:31:26] zlib: unexpected end of file

最后都变了- 提交于 2019-12-11 00:37:08

问题


When I run exp init Locations it gives me this error:

npm: 6.1.0

exp: 55.04


回答1:


as @Mandan described. You could also navigate to %userprofile%/.expo/starter-app-cache folder to delete blank-1.8.0.tar.gz, and run the expo init again




回答2:


This is because blank-31.0.1.tar.gz expo pakage does not downloaded properly.

go to C:\Users\YourUsername\ .expo\starter-app-cache and delete "blank-31.0.1.tar.gz".

After this run:

expo init awsome-project.



回答3:


Apparently this can happen when expo caches a corrupt starter file (see Issues).

Try to delete the file at ~\.exponent\starter-app-cache\blank-1.8.0.tar.gz and/or remove and reinstall exp using npm remove -g exp and npm install -g exp



来源:https://stackoverflow.com/questions/50962464/exp-init-project-113126-zlib-unexpected-end-of-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!