Tôi chỉ cố gắng để cài đặt NodeJS http-server
trên Windows 10 Ubuntu Bash, lắp đặt làm việc tốt nhưng chạy nó để phục vụ cho một trang web tĩnh $http-server src
ném lỗi này:Node http-server không làm việc trên 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
Điều gì có thể bị thiếu ở đây? Chưa được hỗ trợ với Ubuntu bash trên Windows 10?
Có khả năng chưa được hỗ trợ, 'EINVAL' là lỗi hệ thống linux và MS đang mô phỏng hoặc ánh xạ các cuộc gọi hệ thống đến cửa sổ. Lần cuối cùng tôi nghe các nhà phát triển nói rằng họ không quá chắc chắn về bất cứ thứ gì mà servery làm việc tốt – Matt