我正在尝试链接react-native-fetch-blob库,但出现错误
react-native link react-native-fetch-blob和错误显示
Scanning folders for symlinks in ...\node_modules (48ms)
rnpm-install ERR! ERRPACKAGEJSON No package found. Are you sure this is a React Native project?
Cannot read property '_text' of undefined我已经使用npm install react-native-fetch-blob --save安装库,但在链接时显示错误。
不仅仅是fetch-blob,链接对任何库都不起作用。
发布于 2018-01-31 07:12:04
在运行react-native link react-native-fetch-blob之前,请确保您位于React Native项目的根目录。
我的猜测是,您当前可能在ios或android文件夹中,因此跳到上一个目录级。
如果npm在当前目录中安装了任何软件包,则需要删除它们,然后从项目的根目录重新安装它们,以确保它们安装在正确的位置。
https://stackoverflow.com/questions/48517936
复制相似问题