Reputation: 107
I've installed Ionic and as it uses Angular I presume that when I installed ionic I also installed angular, right?
So if I installed angular like the site suggests: npm install [email protected]
I would be installing angular twice?
I ran this command npm list -g --depth=0
and the result is:
/usr/local/lib
├── [email protected]
├── [email protected]
└── [email protected]
Angular should be listed, shouldn't?
I checked the folder ~/.npm
and the only thing similar to angular is a directory called @angular
.
So, in order to be able to build a website using angular, should I just install it with the above command? Is there a chance that is conflicts with angular from ionic's installation?
Obs: I'm using macOS Sierra
Upvotes: 1
Views: 574
Reputation: 1212
No. This goes along with dependencies and you'll find everywhere throughout NPM, NuGet etc. If you install Ionic, for example and Ionic uses Angular it has a config or configuration file that links to the Ionics dependencies. Ionic depends on Angular to run, so in it's config file (package.config) or package.json will show what version of Angular it uses. It is included in the Ionic files, but not for use for your project.
You'll want to download Angular for your project as well. You'll also want to pay attention to versioning as well. I assume if you aren't familiar with the config files you'll also want to look into this as well.
Upvotes: 1