Npm http-server not run after being installed

Asked

Viewed 875 times

0

Good afternoon, on npm (Node package manager) installing http-server, would anyone have any idea why http-server is not being recognized?

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

Editing --->

with the same live-server thing... some path configuration detail...

inserir a descrição da imagem aqui

  • You gave the command npm i -g http-server?

  • yes... I did the global installation... it was working until Wednesday... I went to open now and it just didn’t work!!! I tried to reinstall, restart the machine... even so, with no result... I’m leaving to try(https://www.npmjs.com/package/live-server)....

  • I’m thinking of reinstalling the nodejs... will be necessary?

1 answer

0

Solved the problem was in setting the pro npm path that contains http-server dependency, in this case (c: users user Appdata Roaming npm) ...

caminho da variável global

prompt cmd

Browser other questions tagged

You are not signed in. Login or sign up in order to post.