4

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.

3 Answers 3

5

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

Sign up to request clarification or add additional context in comments.

2 Comments

--save is not a valid option error: unknown option `--save'
We can escape --save option, package.json will automatically updated with dependency.
3

Try to change the rnpm to npm: npm install --save react-native-dialogs. It may works.

EDIT:

The solution is installing the rnpm (React Native Package Manager): https://github.com/rnpm/rnpm

2 Comments

See this github.com/aakashns/react-native-dialogs some difference If I install through npm, I have to configure manually a lot
Oh, i see. So, try to install the rnpm (React Native Package Manager) tho: github.com/rnpm/rnpm
1

you should install rnpm

$ sudo npm install rnpm -g 

now you can use rnpm

you can check rnpm document:rnpm

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.