Node.js now available in Haiku
pkgman install nodejs
To install Node.js on Haiku, search for the package in HaikuDepot and click ‘Install’ or type
pkgman install nodejs into the Haiku Terminal and it will automatically install everything.
React and TypeScript:
Angular and TypeScript:
Simple Express Web Server:
Socket.IO Chat Demonstration:
Creating a static site via Hexo:
It is also possible to attach node programs for remote debugging via the Chrome Inspector remotely. Here are a few screenshots of Node.js running on a Haiku machine being remotely debugged with Chrome (macOS).
Please note that since this is a very early port to a new operating system, it is expected that several packages require platform recognition for it to function correctly. Therefore, some packages will not work unmodified and would require patches. In relation to this, some features in this port are currently unavailable such as file system events (fs-events) which is used for watching file changes in the file-system. While Haiku itself has the ability to monitor file system events, there is a plan to integrate this into the Node port in the future.
I would like to thank all of those who were involved in making this port possible. This would not have been possible without the contributions from the following:
- Haiku activity report - May 2020
- GSoC 2020 Project Update: XFS
- GSoC 2020 Project: Improving and Extending Services Kit
- Progress report of community bonding period
- GSoC 2020 Project: Adding XFS file system in Haiku
- GSoC 2020 Project: Input Preferences
- GSoC 2020 Project: Adding UFS2 file system in Haiku
- Haiku activity report - April 2020
- Haiku activity report - February and March 2020
- Haiku field trip report - January 2020