-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot find module USB #1
Comments
OK so sorry, I read the instructions again. Now stuck on keypress.
$ node keyboard.js Error: Cannot find module 'keypress' |
OK deleted modules folder and the "node_modules_old2.json " file.
Sorry is turning out to be a bit of an addition to the readme documentation. It seems it needs to be an admin. Still problem with cursor. But should help any novice like me that comes across this.
So it shoots but does not understand what moving means. I guess this is because:
and it refers to a camera I do not have. |
I commented the last line of keyboard.js
unsure what it did, but the machine seems to work now. |
I can confirm the above fix, fixes the problem. |
I run keyboard.js expecting the programme to run on command line waiting for keystrokes.
$ node keyboard.js
internal/modules/cjs/loader.js:638
throw err;
^
Error: Cannot find module 'usb'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/home/andres/tenx_usb_missile_launcher/tenx_driver.js:32:11)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
The text was updated successfully, but these errors were encountered: