I’m new on Ionic and I am trying to understand how it works around npm and installation packages on my Win10’s notebook, so I did “npm install -g ionic-angular cordova” where doing the npm info version I see for ionic-angular it’s 2.9.0 version… so I downloaded from github latest version of ionic-native 4.6.0, unpacked it in C:\ and I did “npm update ionic-native” but it didn’t nothing… doing “npm list ionic-native” returned me " '–(empty)"…
What I should do to update correctly ionic-native to latest? And a little confirm: having ionic-angular installed is similar to have ionic and angular in separate way?
If so, you have to update your package.json file. You could do a npm outdate and look what the desired versions are (or current if you feel bold)
If you mean install en your pc the latest version of Ionic in general then you have to do npm -g install ionic@latest
That will give you the latest version of the ionic cli. You can then start a new project with ionic start
This is a common problem in the npm ecosystem, but “ionic-native” is obsolete. Do not install it. There is also no need to deal with github directly here. Simply follow these instructions.
I thought ionic is just about modules/packages that could be updated to latest… I guess doing “npm install -g ionic@latest”, at the page link you gave me, means stable release indeed doing separate install is just to update to current release with current functions…
And I am looking for ionic-native because I was thinking to create a simple iOS/Android app which have BLE package.
Lemme guess maybe adding ionic-native in the app instead of ionic installation, will add latest ionic-native , right?
1.) Find ionic 3 release latest package.json file (U can find it by either checking the changelog or just start a new project ionic start myApp and grab their package.json file
2.) Delete node modules
3.) run npm install
4.) ionic info command just to double confirm
Side note, ionic native is a separate package from ionic-angular. Updating ionic version doesnt automatically update ionic native
Just thinking about “do not install the ionic-native”…but wouldn’t just developing with ionic-native be the way to make app for both Android and iOS?..
I’ll try then as you said… just one question since I’m trying to compare… what’s the difference between having ionic-angular (together) or having ionic and angular as separate modules?
If I create project in a directory inside a USB key , can I work on it also from different places like from a laptop and from a workstation separately?..
the node module folder in ionic project is obscenely hard to transfer…once i made an accident mistake of copy and pasting a sample ionic project and it took over an hour.
Besides, using git to manage your project is simply better if you want to work the same project across different devices