siacentral / host-manager

User-friendly desktop app for Sia hosts. Provides easy configuration, better financials, and smart alerts to make hosting simpler.
https://siacentral.com/host-manager
GNU Affero General Public License v3.0
69 stars 14 forks source link

Error: Cannot find module 'fs/promises' when 'npm run serve'. #66

Closed AndreyNag closed 2 years ago

AndreyNag commented 2 years ago

Hi. I try to start host-manager server to access my sia-host via internet but get error: `sia@sia-host:~/host-manager$ npm run serve

Sia-Host-Manager@1.1.1 serve vue-cli-service electron:serve

INFO Starting development server... 98% after emitting CopyPlugin

DONE Compiled successfully in 2162ms 18:27:59

App running at:

⠋ Bundling main process...

DONE Compiled successfully in 904ms 18:28:00

File Size Gzipped

dist/index.js 3130.01 KiB 646.87 KiB

Images and other types of assets omitted.

INFO Launching Electron... App threw an error during load Error: Cannot find module 'fs/promises' Require stack:

AndreyNag commented 2 years ago

I didn't wait for a response from the developers and installed a GUI on the server. Launched https://github.com/siacentral/host-manager/releases/download/v1.1.1/Sia-Host-Manager-v1.1.1.AppImage and I got the same error.