Why is node js used for cordova?

Can someone explain why nodejs is required to run an android project using Apache Cordova? It would be great if I could think a little about it. Also what is the point of sudo npm install -g cordova

+4
source share
2 answers

NPM is a really popular package manager for javascript applications in node, so its a natural choice for an installation tool for a javascript application. As Dawson says, this is a CLI tool for creating a static set of files / scripts and then running scripts to get plugins / builds / deployments of your code. Many developers have already installed NPM, and it is easy to install / update / update the CLI tool.

,

sudo , Linux-.

npm install

-g . , , . , , (npm, bower, grunt ..) , .

cordova - .

+4

sudo npm install -g cordova CLI Cordova. CLI , - .

, Android IDE . , cordova - HTML/CSS/JS, IDE, , CLI .

cordova nodejs CLI, Android.

+2

All Articles