Ho solo provato ad installare NodeJS http-server
su Windows 10 Ubuntu Bash, l'installazione ha funzionato bene, ma farlo funzionare per servire un sito statico $http-server src
getta questo errore:Nodo http server non funziona su Windows 10 Ubuntu Bash
$ http-server src
/usr/lib/node_modules/http-server/bin/http-server:14
var ifaces = os.networkInterfaces();
^
Error: EINVAL, invalid argument
at Object.<anonymous> (/usr/lib/node_modules/http-server/bin/http-server:14:17)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:945:3
Cosa può mancare qui? Non ancora supportato con Ubuntu bash su Windows 10?
Probabilmente non ancora supportato, 'EINVAL' è un errore di sistema linux e MS sta emulando o mappando le chiamate di sistema a Windows. L'ultima volta che ho sentito gli sviluppatori dire che non erano troppo sicuri di qualcosa che servery funzionasse bene – Matt