yargs / cliui

easily create complex multi-column command-line-interfaces.
ISC License
372 stars 41 forks source link

Release packages are missing index.js #133

Closed adrinux closed 1 year ago

adrinux commented 1 year ago

Which results in an error: module not found for cliui.

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/home/adrian/Admin/HuMC/sites/perco-2020/node_modules/cliui/build/lib/index.js' imported from /home/adrian/Admin/HuMC/sites/perco-2020/node_modules/cliui/index.mjs
    at new NodeError (node:internal/errors:399:5)
    at finalizeResolution (node:internal/modules/esm/resolve:231:11)
    at moduleResolve (node:internal/modules/esm/resolve:850:10)
    at defaultResolve (node:internal/modules/esm/resolve:1058:11)
    at nextResolve (node:internal/modules/esm/loader:163:28)
    at ESMLoader.resolve (node:internal/modules/esm/loader:835:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:416:18)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:40)
    at link (node:internal/modules/esm/module_job:75:36) {
  code: 'ERR_MODULE_NOT_FOUND'
adrinux commented 1 year ago

I'm guessing this is an npm problem or something wrong with my setup. Closing.