S
S
sorry_i_noob2018-12-25 09:16:44
npm
sorry_i_noob, 2018-12-25 09:16:44

Why do I need to write npm commands when installing a php project?

Hello.
I am reading the instructions for installing a project on Laravel: https://github.com/jcc/blog . And it has instructions for doing npm: npm install, npm run...I have a question. As far as I know npm is a package loader for node.js. And node.js is a technology that allows you to use Javascript as a server-side language. But the project is written in php, not Javascript (node.js). Why should I use npm commands?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
iBird Rose, 2018-12-25
@iiiBird

right there in the first lines it says that this is a blog on laravel + vue.js

G
Galdar Turin, 2018-12-25
@Galdar

Well, dear friend....
PHP is a server-side language written in C++, so why can't I use the C++ Composer libraries?
Well, I think you understand.
npm libraries for JS
Composer for PHP
And I strongly advise you to use php for "servers".

Well, this is my personal experience and I just advise you to choose, of course!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question