http-server problem

Forum › Forums › General › Software › http-server problem

  • This topic has 5 replies, 6 voices, and was last updated Aug 24-8:39 pm by techore.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #184206
    Fabrizio
    Member

      I need install http-server on antix!

      sudo npm install -g http-server
      sudo: npm: comando non trovato
      #184207
      anticapitalista
      Forum Admin

        First of all, try installing it properly!
        Why do you have that syntax?

        Philosophers have interpreted the world in many ways; the point is to change it.

        antiX with runit - leaner and meaner.

        #184234
        abc-nix
        Member

          npm: comando non trovato

          This is telling you than npm (node package manager) is not installed.

          Either install it systemwide with apt or follow a guide to install npm for only your user (and then there is no need to use sudo). Study what is better for your case and select the easy way or the custom way.

          Corruption has two hands: the Right and the Left. Don't let them squeeze you.

          #184335
          PDP-8
          Member

            If it’s a simple server, you can use things already on the system. Netcat of course, but real simple ones using Python (2 or 3), and Busybox (already on system) are there. Nice that you can keep the busybox server in the foreground if you want.

            Handy quick tube video firing them up:

            https://www.youtube.com/watch?v=Sm3ffQqQBtk

            #184370
            Brian Masinick
            Moderator

              I need install http-server on antix!

              sudo npm install -g http-server
              sudo: npm: comando non trovato

              Start with sudo apt update; sudo apt install npm

              Then you can proceed.

              --
              Brian Masinick
              Alternate "Search B":
              This search page

              #184387
              techore
              Member

                There are a variety of different web servers already package and installable via apt (apt-get). Not suggesting there is anything wrong with npm. Each to their own.

                Knowledge speaks, but wisdom listens.

              Viewing 6 posts - 1 through 6 (of 6 total)
              • You must be logged in to reply to this topic.