Codova-plugin-camera install problem


ionic plugin add cordova-plugin-camera

the cordova-plugin-camera is in the directory plugins
but when i refer to the doc of the camera api.
it should be in #@ionic-native/camera#.
then when i run:

npm install --save @ionic-native/camera

there is no camera under node_modules/@ionic-native

After 20 minutes from the washing room, i ran:

ionic plugin -rm cordova-plugin-camera -f

there is a camera folder under node_modules/@ionic-native.
why use -f ? if i am not use -f, it will remind me the cordova-plugin-file got some relationship with it.


the same happened to @ionic-native/file, i can’t use it after i force remove the cordova-plugin-file it is normal.

Normally these three steps are enough. First two:

$ ionic plugin add cordova-plugin-camera
$ npm install --save @ionic-native/camera

And this one:

I think you might be confusing some things:

There are two things being installed: The Ionic Native “wrapper” and the Cordova plugin. You need both for it to work.

1 Like

Thank you very much. That is exactly what i am confusing.