iBicha / yt2alt

A cli tool to import your profile from YouTube to an alternative platform
GNU Affero General Public License v3.0
26 stars 3 forks source link

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'stream' #17

Closed Hate9 closed 7 months ago

Hate9 commented 7 months ago

On running npx yt2alt, I get the following error:

node:internal/process/esm_loader:74
    internalBinding('errors').triggerUncaughtException(
                              ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'stream' imported from /home/mabel/.npm/_npx/00e04e11bd4e38b3/node_modules/youtubei.js/dist/src/platform/node.js
    at new NodeError (node:internal/errors:363:5)
    at packageResolve (node:internal/modules/esm/resolve:698:9)
    at moduleResolve (node:internal/modules/esm/resolve:739:18)
    at Loader.defaultResolve [as _resolve] (node:internal/modules/esm/resolve:853:11)
    at Loader.resolve (node:internal/modules/esm/loader:89:40)
    at Loader.getModuleJob (node:internal/modules/esm/loader:242:28)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:73:40)
    at link (node:internal/modules/esm/module_job:72:36) {
  code: 'ERR_MODULE_NOT_FOUND'
}
iBicha commented 7 months ago

Thanks for reporting, can you share your nodejs and npm version?

node --version
npm --version
Hate9 commented 7 months ago

Ok, weird: I went to check, and then ran the npx command again just to check, and it's working now. Huh.