WSL icon indicating copy to clipboard operation
WSL copied to clipboard

http-server from NPM package manager gives error

Open thesillystudent opened this issue 10 years ago • 4 comments

  • http-server package installed globally from NPM package manager gives error
  • server should have started as it works fine on cmd but not on bash
  • 14393.10 - windows build number
 curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
 sudo apt-get install -y nodejs
 npm install http-server -g
 http-server

expected result as on cmd-- cmd_http

Actual Results on bash-- bash_http

thesillystudent avatar Aug 03 '16 18:08 thesillystudent

I assume this may be related https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/suggestions/13383789-enable-network-interface-enumeraration

Duplicate of https://github.com/Microsoft/BashOnWindows/issues/468

MadLittleMods avatar Aug 03 '16 20:08 MadLittleMods

Im also getting this error. When I run npm install I see

shawn@AGGRESSIVE:/mnt/c/Websites/www.theaggressive.dev/site/web/app/themes/aggressive$ npm install
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]

Also the same output when I try to run gulp. I hope this gets fixed ASAP

TheAggressive avatar Aug 10 '16 23:08 TheAggressive

@TheAggressive -- actually that's not an error; your command ran successfully, and produced the same output as it would on Linux (not the same as it would on Mac).

This has been discussed on other tickets before, so I've posted about it:

http://wsl-forum.qztc.io/viewtopic.php?f=6&t=32&p=42

Feel free to comment/etc there. (You can comment here too if you'd like, of course; but since this has already been discussed, I'm trying to direct all the discussion to the same place so it doesn't get lost.)

aseering avatar Aug 11 '16 02:08 aseering

Closing since network interface enumeration has been in the Insider builds for some time, and will be in the Creators Update.

JasonLinMS avatar Mar 17 '17 00:03 JasonLinMS