thedave42 / f1tv-dl

Watch videos from f1tv locally
45 stars 4 forks source link

Error: Cannot find module 'temp' #321

Open Piero16301 opened 1 year ago

Piero16301 commented 1 year ago
node:internal/modules/cjs/loader:1080
  throw err;
  ^

Error: Cannot find module 'temp'
Require stack:
- C:\Users\piero\AppData\Roaming\npm\node_modules\@thedave42\f1tv-dl\lib\dash-downloader.js
- C:\Users\piero\AppData\Roaming\npm\node_modules\@thedave42\f1tv-dl\index.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
    at Module._load (node:internal/modules/cjs/loader:922:27)
    at Module.require (node:internal/modules/cjs/loader:1143:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at Object.<anonymous> (C:\Users\piero\AppData\Roaming\npm\node_modules\@thedave42\f1tv-dl\lib\dash-downloader.js:6:14)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Module.load (node:internal/modules/cjs/loader:1119:32)
    at Module._load (node:internal/modules/cjs/loader:960:12)
    at Module.require (node:internal/modules/cjs/loader:1143:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'C:\\Users\\piero\\AppData\\Roaming\\npm\\node_modules\\@thedave42\\f1tv-dl\\lib\\dash-downloader.js',
    'C:\\Users\\piero\\AppData\\Roaming\\npm\\node_modules\\@thedave42\\f1tv-dl\\index.js'
  ]
}

Node.js v18.16.1
thedave42 commented 1 year ago

@Piero16301 how did you install/run the app? Looks like the package is missing from the node_modules path. If you installed using npm you may just need to re-install, but if you're running from docker I may need to fix something. 😄

Piero16301 commented 1 year ago

I have installed it using npm and I get that error. Is it an extra library that needs to be installed?

thedave42 commented 1 year ago

Hmm... ok. It should understand that it needs to install that module as a dependency when you install it via npm. I just published a new version - see if updating fixes it? The missing temp module is this one.