Unfortunately, this may not be the same address every time WSL is started. Incidentally, because WSL is a virtual environment, it has its own virtual network interface (It actually uses Hyper-V) with its own IP address, something in the range 172.20.*.*. You can start Node-RED on the host and in WSL - with the same PORT! When you do, the WSL version takes preference. Microsoft have crafted some magic so that localhost (AKA 127.0.0.1) on WSL is mapped over to the same on the Windows host.īut now something really weird happens. Panic because you now don't know how to access the started web server! Install Node-RED using npm -g install node-red or my alternate-node-red-installer. If you are using a Debian-based distribution on WSL, I strongly recommend using the NodeSource binary distributions. Install node.js from the official installation page. In addition, WSL does not use systemd as most distributions now do. You cannot (yet) easily run a Linux desktop but this should be integrated in 2021H2. You may install a number of different Linux distributions from the Windows Store, Ubuntu being the original and probably best developed. It runs a special version of the Linux kernel to achieve tight integration with Windows. WSL allows easy access to and from Windows/Linux filing systems. Windows 10 has a feature that allows you to run Linux in a lightweight virtual container.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |