Why is Node.js required for Angular?

Angular does not need Node.js directly and it is not mandatory to use Node.js. But you will need Node.js for all the build and development tools.

For an example these are few reasons that you need Node.js for building an Angular app,

  • npm (node package manager) comes with Node.js by default and it allows
    you to manage your dependencies. So, you don’t have to worry for
    operations like adding a dependency, removing some, updating your
    package.json.

  • npm gives you angular cli or ng cli (angular command-line interface) which is a great tool for building your application easily

  • Node.js allows you to spin up a lightweight web server to host your application locally in your system.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)