DroidHeaven DroidHeaven - 1 month ago 17
Git Question

Ionic/Cordova - Why are node_modules ignored while committing to git?

First of all, pardon my ignorance of ionic/cordova framework.

node_modules
directory is generated by
ionic start
command. If someone clones my repo hosted on
bitbucket
, they will be devoid of
node_modules
directory since they haven't used
ionic start
command and git ignored it. Wouldn't it be causing any issues?

Answer

Because libraries in node_modules directory to be saved in packege.json and they have large size, too many files. So, when you commited to git, they were ignored.

Cheer!