patorjk / figlet.js

A FIG Driver written in JavaScript which aims to fully implement the FIGfont spec.
MIT License
2.61k stars 167 forks source link

Cannot find module figlet #93

Open mathematician001 opened 1 year ago

mathematician001 commented 1 year ago
echo "lol" | figlet
node:internal/modules/cjs/loader:1063
  throw err;
  ^

Error: Cannot find module 'figlet'
Require stack:
- C:\Users\alex\AppData\Roaming\npm\node_modules\figlet-cli\bin\figlet
    at Module._resolveFilename (node:internal/modules/cjs/loader:1060:15)
    at Module._load (node:internal/modules/cjs/loader:905:27)
    at Module.require (node:internal/modules/cjs/loader:1127:19)
    at require (node:internal/modules/helpers:112:18)
    at Object.<anonymous> (C:\Users\alex\AppData\Roaming\npm\node_modules\figlet-cli\bin\figlet:7:14)
    at Module._compile (node:internal/modules/cjs/loader:1246:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1300:10)
    at Module.load (node:internal/modules/cjs/loader:1103:32)
    at Module._load (node:internal/modules/cjs/loader:942:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'C:\\Users\\alex\\AppData\\Roaming\\npm\\node_modules\\figlet-cli\\bin\\figlet'
  ]
}

Node.js v19.5.0
jcubic commented 8 months ago

Did you try to install the missing module filget?