Reputation: 960
I am trying to use react native vector icons in my project, but I getting error when installing it.
Below are the STEPS which I was running on my terminal:
STEP-1 : npm install react-native-elements --save
NO ERROR ON THIS STEP-1
STEP-2: npm install react-native-vector-icons --save
NO ERROR ON THIS STEP-2
STEP-3: react-native link react-native-vector-icons
ERROR:
react-native : The term 'react-native' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ react-native link react-native-vector-icons
+ ~~~~
+ CategoryInfo : ObjectNotFound: (react-native:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Upvotes: 1
Views: 1041
Reputation: 756
If you are using version above 0.60+ you dont need to use link command. Once npm install is done just do
cd ios && pod install
and it should be fine
Upvotes: 2