Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why can't I use the http-server globally with node/RPM?

Tags:

node.js

npm

I installed http-server globally but it does not show up in "C:\Users\userName\AppData\Roaming\npm\" and I get the error

sh: http-server: command not found

I used following command

npm install -g http-server
like image 790
Sanjay Maharjan Avatar asked Jan 26 '26 08:01

Sanjay Maharjan


1 Answers

I added "C:\Program Files (x86)\Git\local" to PATH and it is working now.

like image 72
Sanjay Maharjan Avatar answered Jan 28 '26 21:01

Sanjay Maharjan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!