node.jslaravelnpmlaravel-boilerplate

Why does Laravel Boilerplate instruct users to run NPM?


As NPM is the package manager for Node.js, I frequently see it used with Laravel Boilerplate projects, but I can't reason why?

For example, the documentation instructs me to run npm install within the steps of installing the project.

Other examples too can be found of using NPM with Laravel.

Can someone please explain why? Isn't Laravel based on PHP, not JavaScript/Node.js?


Solution

  • I made that boilerplate. That command is specific to download the dependencies for the Laravel Elixir package (http://laravel.com/docs/5.0/elixir), but it has many, many uses outside that.

    The Elixir docs explain it very well.