running http server

Joined
Dec 15, 2016
Messages
1
Reaction score
0
Points
1
hi, i tried to install an http server via "sudo npm install http-server -g" command, it asked for a password, i wrote my password several times and forgot it, now when i remembered it i tried again with the same command it send my the massage "command not found", i really need that server for my java programing, do anyone know what i should do?
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
You need to install npm which comes with Node.js (npm stands for Node Package Manager). Get it here.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top