Everytime I have to reupload the application so I can make my changes every time I need at .scss file(with laravel mix) running npm run watch . Using ssh shell and connect to the server via CMD. How you can run watch with this way?
I installed nvm with no results. That would help me a lot! Thank you.
You can use the npm run watch command with an SSH shell of Hostgator. To do this, you'll need to install Node.js and npm on the server. You can do this by running the following commands:
Once Node.js and npm are installed, you can run npm run watch from the SSH shell. This will watch for changes in your .scss files and compile them accordingly.
Is it shared? Are you saying npm doesn’t work in the production env? My shared host doesn’t allow npm commands. I have to build the side styles and push them via git
@rubenochoa No, I didn't mean that. I meant, is the server shared hosting or a custom server. Anyway for both cases, you should contact Hostgator support and they will install it very quickly.