简体   繁体   中英

React-native vector and icons Installation Error

安装该软件包将删除以前安装的react-native-cli软件包。

This an issue with npm. You can follow the issue here .

I suggest you to use yarn or a more stable version of npm. Yarn is more easy to use with react-native since it even links the library after the instillation.

To solve the current problem, remove node_modules folder and package-lock.json and if there is yarn.lock file. Then run the command yarn if you are using yarn or npm install .

If the 'react-native' module has version 0.4 and up, than you should update the 'react-native-vector-icons' module version to 4.0. You can update using the following command

npm install --save react-native-vector-icons@4.0

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM