I am currently facing an issue while trying to set up http-server, bower, and grunt on my Windows machine. After successfully installing them using npm install, I encountered a 'command not found' error when attempting to run the commands. Even after restarting the command prompt and trying again, the same error persisted. The files are located in the appdata folders.
C:\Users\testuser>npm install http-server
+ <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f29a868682df819780849780b2c2dcc3c3dcc3">[email protected]</a>
updated 1 package in 5.713s
C:\Users\testuser>http-server
'http-server' is not recognized as an internal or external command,
operable program or batch file.
Upon verifying, I noticed that the service is installed:
C:\Users\testuser>npm list -g --depth=0
C:\Users\testuser\AppData\Roaming\npm
+-- <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="13717c64766153223d2b3d2b25f707e6f79767c79">[email protected]</a>
+-- <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="026a7676722f71677074677042326c626c7766414f50545f5459">[email protected]</a>
`-- <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="7020071f03895c02140307140331411f01041e414b46400f030104">[email protected]</a>
Despite conducting searches for similar issues, I was unable to find a solution matching my problem.