#Running NPM on Hostinger

21 messages · Page 1 of 1 (latest)

next folio
#

Install npm locally, build your assets, publish the bundled assets

inland plume
#

Surely if you have a VPS then you have SSH access?

red perch
#

Yes I accessed it , but it keeps telling me that the commands are not found , I tried with npm then node then even sudo… and I can auto install a clean project and make it run but I can’t seem to get an existing one going (without npm giving me an issue)

#

I’m using Putty for SHH (I noticed that some commands would run on putty but won’t if I’m just using the normal CMD) so I’m not sure if the issue is still me not using the right CLI

red perch
kindred solstice
#

If commands are not found then npm is probably not installed by default on your VPS. Go ahead and install it.

red perch
#

So what if it’s commands like sudo or apt that’s not found?

kindred solstice
#

apt is only available on debian based operating systems. What are you running?

#

And its highly unlikely that sudo is not available on a linux based os

red perch
#

Is there a way of me checking so we don’t waste time?

I just made it on Hostinger because it was one of the highly rated places to host Laravel apps .

inland plume
kindred solstice
#

It'll tell you once you ssh into the server.

#

If you don't want to take the time to learn basic server management, you should use a service like Ploi or Forge to manage the server for you.

inland plume
#

Doesn’t help that it takes like, 6 hours to get a reply to every question either…

red perch
#

ill drop screenshots

inland plume
#

First result:

cat /etc/os-release
red perch
#

tried it a couple of times

#

and i have done it a few times, im just not sure what changed now... but im seeing that something is missing with the hostinger

inland plume