IrosTheBeggar / mStream

The easiest music streaming server available
http://mstream.io
GNU General Public License v3.0
2.22k stars 188 forks source link

Unable to start: missing module #370

Open matiasw opened 2 years ago

matiasw commented 2 years ago

Hello, I installed mStream following the instructions at https://github.com/IrosTheBeggar/mStream/blob/master/docs/install.md - however, I get the following error trying to run npm run-script wizard:


               ____  _
     _ __ ___ / ___|| |_ _ __ ___  __ _ _ __ ___
    | '_ ` _ \\___ \| __| '__/ _ \/ _` | '_ ` _ \
    | | | | | |___) | |_| | |  __/ (_| | | | | | |
    |_| |_| |_|____/ \__|_|  \___|\__,_|_| |_| |_|
v5.11.4

Check out our Discord server:
https://discord.gg/AM896Rr

node:internal/modules/cjs/loader:936
  throw err;
  ^

Error: Cannot find module '../util/utimes.js'
Require stack:
- /home/appas/mStream/node_modules/ffbinaries/node_modules/fs-extra/lib/copy-sync/copy-sync.js
- /home/appas/mStream/node_modules/ffbinaries/node_modules/fs-extra/lib/copy-sync/index.js
- /home/appas/mStream/node_modules/ffbinaries/node_modules/fs-extra/lib/index.js
- /home/appas/mStream/node_modules/ffbinaries/ffbinaries-lib.js
- /home/appas/mStream/node_modules/ffbinaries/index.js
- /home/appas/mStream/src/api/transcode.js
- /home/appas/mStream/src/state/config.js
- /home/appas/mStream/src/util/vpath.js
- /home/appas/mStream/src/api/db.js
- /home/appas/mStream/src/server.js
- /home/appas/mStream/cli-boot-wrapper.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/home/appas/mStream/node_modules/ffbinaries/node_modules/fs-extra/lib/copy-sync/copy-sync.js:6:20)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home/appas/mStream/node_modules/ffbinaries/node_modules/fs-extra/lib/copy-sync/copy-sync.js',
    '/home/appas/mStream/node_modules/ffbinaries/node_modules/fs-extra/lib/copy-sync/index.js',
    '/home/appas/mStream/node_modules/ffbinaries/node_modules/fs-extra/lib/index.js',
    '/home/appas/mStream/node_modules/ffbinaries/ffbinaries-lib.js',
    '/home/appas/mStream/node_modules/ffbinaries/index.js',
    '/home/appas/mStream/src/api/transcode.js',
    '/home/appas/mStream/src/state/config.js',
    '/home/appas/mStream/src/util/vpath.js',
    '/home/appas/mStream/src/api/db.js',
    '/home/appas/mStream/src/server.js',
    '/home/appas/mStream/cli-boot-wrapper.js'
  ]
}

I tried npm install utimes, but it did not help.

My npm version is 8.5.5, mStream latest from git (5.11.4), and node version 16.15.0.

aroundmyroom commented 2 years ago

did you try: npm link --production