calzoneman / sync

Node.JS Server and JavaScript/HTML Client for synchronizing online media
Other
1.47k stars 232 forks source link

Error: Cannot find module 'node:fs/promises' #955

Closed sorajhin closed 2 years ago

sorajhin commented 2 years ago

Please fill out the templates below to the best of your ability, based on whether your problem is with using the website or with running your own server.

Server Problem

If your issue is related to using the website and not about running a server, you can remove this section.

Please confirm whether you've tried the following debugging steps:

Description of the Problem

System Information

calzoneman commented 2 years ago

Node v12 is end of life and no longer supported upstream. Please install a currently supported version of node, such as v16 LTS: https://nodejs.org/en/ .

On Mon, Oct 24, 2022, 04:32 sorajhin @.***> wrote:

Please fill out the templates below to the best of your ability, based on whether your problem is with using the website or with running your own server. Server Problem

If your issue is related to using the website and not about running a server, you can remove this section.

Please confirm whether you've tried the following debugging steps:

  • [ Y] Run npm run build-server to regenerate lib/ from src/
  • [ Y] Run rm -rf node_modules && npm install to get a fresh install of dependencies
  • [ Y] Restarted the server

Description of the Problem

  • What triggers the problem? node index.js
  • What happens? Unable to start server
  • What do you expect to happen instead? Web Server started

System Information

-

Operating System: Linux | Ubuntu 20.04.5 LTS

Node Version: (run node -v) $ node -v v12.22.12

CyTube Version: (displayed at startup) [INFO] server: Starting CyTube v3.84.0

Error Messages Displayed: FATAL: Failed to require() lib/main.js Possible causes:

  • You haven't run npm run build-server to regenerate the runtime
  • You've upgraded node/npm and haven't rebuilt dependencies (try npm rebuild or rm -rf node_modules && npm install)
  • A dependency failed to install correctly (check the output of npm install next time) Error: Cannot find module 'node:fs/promises' config.zip https://github.com/calzoneman/sync/files/9851284/config.zip

— Reply to this email directly, view it on GitHub https://github.com/calzoneman/sync/issues/955, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAC6FCE5EAZC4WHQ67YDCH3WEZXVNANCNFSM6AAAAAARM4HQ5M . You are receiving this because you are subscribed to this thread.Message ID: @.***>

sorajhin commented 2 years ago

oh my .... Thanks @calzoneman!! I didn't notice I was using an older version of Node. Thanks! will continue with setting up my server now!