krissrex / google-authenticator-exporter

Get the TOTP secrets exported by Google Authenticator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Module index.js not found

Trop-ix opened this issue · comments

I was just testing the code when i stumbled upon an 'error'.
It occurs whenever i try to run 'npm run start' or 'npm run start:qrcode'

npm and Nodejs are installed. and the index.js file exists in the stated location...

Am i doing something wrong/missing something, or what could be the problem here?

** Enviroment **
Debian 12 Virtual Machine running in Virtual Box

** Error Message **

npm run start

google-auth-exporter@1.0.0 start
node ./src/index.js

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

Error: Cannot find module 'prompt'
Require stack:

  • /home/vm-admin/Downloads/google-authenticator-exporter-master/src/index.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1039:15)
    at Module._load (node:internal/modules/cjs/loader:885:27)
    at Module.require (node:internal/modules/cjs/loader:1105:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at promptUserForUri (/home/vm-admin/Downloads/google-authenticator-exporter-master/src/index.js:136:18)
    at Object. (/home/vm-admin/Downloads/google-authenticator-exporter-master/src/index.js:190:1)
    at Module._compile (node:internal/modules/cjs/loader:1218:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1272:10)
    at Module.load (node:internal/modules/cjs/loader:1081:32)
    at Module._load (node:internal/modules/cjs/loader:922:12) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/home/vm-admin/Downloads/google-authenticator-exporter-master/src/index.js'
    ]
    }

Node.js v18.13.0

commented

Looks like you haven't installed dependencies with npm i.

Looks like you haven't installed dependencies with npm i.

better to run

npm ci