- 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)
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.
Forum for users of antiX Linux. Proudly anti-fascist.
I need install http-server on antix!
sudo npm install -g http-server
sudo: npm: comando non trovato
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.
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.
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:
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
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.
| Cookie | Duration | Description |
|---|---|---|
| cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
| cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
| cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
| cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
| cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
| viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |