google-authenticator-exporter icon indicating copy to clipboard operation
google-authenticator-exporter copied to clipboard

Module index.js not found

Open Trop-ix opened this issue 2 years ago • 2 comments
trafficstars

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

[email protected] 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

Trop-ix avatar Oct 27 '23 07:10 Trop-ix

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

AngaBlue avatar Nov 13 '23 03:11 AngaBlue

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

better to run

npm ci

ruscon avatar Feb 19 '24 22:02 ruscon

Yeah, you need to run npm install as suggested above.

krissrex avatar Jun 11 '24 20:06 krissrex