Giter Club home page Giter Club logo

Comments (8)

famewolf avatar famewolf commented on July 17, 2024

Keep in mind gmail will be one of the most popular and plenty of people use 2FA which will complicate matters. I actually setup an account elsewhere and use it only for automated notices to myself from tasks on my htpc such as "X tv show was converted to mkv @ y date/time"

from giveaway-grabber.

jpchip avatar jpchip commented on July 17, 2024

Since adding emails would mean adding SMTP credentials to the .env file and just seems generally annoying to set up, thought I'd look into other options. Found this neat library: https://github.com/mikaelbr/node-notifier

So, I set it up to actually send system notifications when there is a captcha. That should get your attention.

from giveaway-grabber.

jpchip avatar jpchip commented on July 17, 2024

Closing this ticket for now.

from giveaway-grabber.

famewolf avatar famewolf commented on July 17, 2024

Forget something?

famewolf@hp810-135qe ~/giveaway-grabber $ npm start -- --2FA

[email protected] start /home/famewolf/giveaway-grabber
node index.js "--2FA"

module.js:549
throw err;
^

Error: Cannot find module 'node-notifier'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (/home/famewolf/giveaway-grabber/src/giveaways.js:3:12)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)

npm ERR! Linux 4.15.0-45-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start" "--" "--2FA"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: node index.js "--2FA"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node index.js "--2FA"'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the giveaway-grabber package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node index.js "--2FA"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs giveaway-grabber
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls giveaway-grabber
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/famewolf/giveaway-grabber/npm-debug.log

npm-debug.log

from giveaway-grabber.

jpchip avatar jpchip commented on July 17, 2024

You need to run npm install

from giveaway-grabber.

famewolf avatar famewolf commented on July 17, 2024

ran it with sudo because it kept trying to write to /usr/local/lib. I wanted it installed for the user but even that still didn't work. "sudo npm install -g giveaway-grabber" and then restarting resulted in:

famewolf@hp810-135qe ~/giveaway-grabber $ npm start -- --2FA

[email protected] start /home/famewolf/giveaway-grabber
node index.js "--2FA"

module.js:549
throw err;
^

Error: Cannot find module 'node-notifier'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (/home/famewolf/giveaway-grabber/src/giveaways.js:3:12)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)

npm ERR! Linux 4.15.0-45-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start" "--" "--2FA"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: node index.js "--2FA"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node index.js "--2FA"'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the giveaway-grabber package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node index.js "--2FA"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs giveaway-grabber
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls giveaway-grabber
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/famewolf/giveaway-grabber/npm-debug.log
npm-debug.log

from giveaway-grabber.

jpchip avatar jpchip commented on July 17, 2024

ahh, don't run it with the -g. Make sure you are in the directory the package.json file is and run sudo npm install

from giveaway-grabber.

famewolf avatar famewolf commented on July 17, 2024

Working now. Might want to mention those steps in the changelog for "upgrades"?

from giveaway-grabber.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.