I have Laravel 8 installed under CentOS and I would like to install Bootstrap CSS using NPM (node package manager). What is the best way to install NPM from the command line so as to maintain the best compatibility with Laravel 8? Can I simply use yum, or should I use composer, or should I do it some other way?
Once I confirmed bootstrap css was working using a test script, I git pushed the compiled css (and other files that were updated/created) and test page. Other servers did not have npm installed but were able to display the test page correctly, proving bootstrap css was installed under Laravel 8 without the need for npm.
I am not yet familiar with mix nor it's advantages. I'm attempting to follow these instructions as closely as possible without using Sail nor GUI for installing NPM.
I suppose I could install nodejs/npm using the binary as indicated on the nodejs site, but that it would be better to keep the install process more... cohesive, if possible. I want to make it easier for someone else to set up the site if and wen it needs to be moved.
npm install generates so many packages. The things is that docs says that you have to run npm install but when i do so it generates over 29.501 Files, 5.278 Folders and when moving all those folder for example when i copy paste the project is an issue.