Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install rnpm package for react native

I am trying to install this package for my react-native package. https://www.npmjs.com/package/react-native-dialogs

I see that I need to execute this command to get it installed. rnpm install --save react-native-dialogs

I have node and npm installed on my machine. I am not sure what rnpm is. I am getting an error. I tried to go through some links but no luck.

'rnpm' is not recognized as an internal or external command, operable program or batch file.

like image 950
N Sharma Avatar asked Jan 04 '23 02:01

N Sharma


1 Answers

rnpm has been "absorbed" in to core React Native. If the package is asking you to install via rnpm you can use the following instead

react-native install --save react-native-dialogs

This will install the package from npm and then link the native dependencies. It's a shortened version of

npm install --save react-native-dialogs && react-native link react-native-dialogs

like image 69
Spencer Carli Avatar answered Jan 13 '23 08:01

Spencer Carli