As long as you changed it in devDependencies you should only need to run npm install on your server.
/node_modules is .gitignored but package.json isn't. So running npm install will still install all of the relevant packages.
My gitignore looks like this:
/node_modules /public/storage /public/hot /storage/*.key /vendor /.idea Homestead.json Homestead.yaml .env
And in my package.json file I have removed bootstrap from devDependencies and instead I use Materializecss which I install by doing: npm install materialize-css
Does that mean when I later push my code to my prod server do I have to run npm install materialize-css or does simply calling npm install do it?
Please or to participate in this conversation.