SlavyanDesu / BocchiBot

BocchiBot is a multipurpose WhatsApp bot using wa-automate-nodejs library!
MIT License
310 stars 409 forks source link

Packages blocking each other from updating | package.json & packages-lock.json #555

Closed Johannes099 closed 3 months ago

Johannes099 commented 9 months ago

Hey there, Im sorry for my 2nd bug report, but this one is very important, and if this wont get fixed, you cant use the bot. If you want to install the dependencys (npm install) you get many errors, and npm wants you to do npm audit , npm audit fix, and npm audit fix --force, to repair it, but, and here it comes, the version requirements in the package.json and package-lock.json are blocking each other from installing / fixing them, because some dependencys require a newer version, but since some packages are give for Example "2.3.0" ( i dont think that this exists in the code but its just an example) so npm automaticly downgrades the package again, but sine other packages require a other version, so I guess you get the point. Also the package ""request" is no longer supportet by the maintance, but I think with the right versions of the oter packages (( like the newest of though-cookie, which is one of the best exampels for the downgrading issiue) it shouldnt be a problem. Please Fix this Problem very soon and reach out to me for (you wont need help because your good) but if you need it with repleacing code parts, just tell me. Theank you for your help. Johannes

SlavyanDesu commented 9 months ago

Thanks for letting me know, you can do a pull request if you want.

I'm not quite sure if the main library (wa-automate-nodejs) still working or not because the author is no longer maintaining the library due to a strike from Meta.

Johannes099 commented 9 months ago

Hey, Thank you for your quck reply, i figuerd out and spend the last hours (( i started befor this post), butt the last problem i cantsolve. I configured alll packages right, but the last 5 moderated serverity vulnerabilities i cant solve ( the oneS with the request, ) so the last errorr, is your Task pleas, here is thee new package-lock.json and package.json script. Johannes

package-lock.json package.json

Johannes099 commented 9 months ago

sorryy for thee closee, it wass an accident 😅

Johannes099 commented 9 months ago

Hey, Its me again, so I figured out, that the package request is causing an error, because no patched version for thiss packages is available, but if your take this package and the oter 3 out that need that package, you get no errors while npm install or npm audit, but then when you try to run it, in wont work. You need to finde a alternative package(s) to make this run again, but i cant find one(s). Thanks for your help I'll hope that you'll soon reply. Johannes

Johannes099 commented 9 months ago

also, here is the link to the error, the other solouton would be, to write a patch for the request ( not the @cypress/request) package but I dont know how. ? So yea, Thank you for your help @SlavyanDesu , Johannnes

SlavyanDesu commented 9 months ago

Hi. Thanks for figuring it out. I will check it out later.

On Fri, Nov 24, 2023, 20:11 Johannes Hummer @.***> wrote:

also, here is the link to the error, the other solouton would be, to write a patch for the request ( not the @cypress/request) package but I dont know how. ? So yea, Thank you for your help @SlavyanDesu https://github.com/SlavyanDesu , Johannnes

— Reply to this email directly, view it on GitHub https://github.com/SlavyanDesu/BocchiBot/issues/555#issuecomment-1825658540, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGXSFIQ233BWFRJZEHTT7JDYGCMJFAVCNFSM6AAAAAA7X2EXXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRVGY2TQNJUGA . You are receiving this because you were mentioned.Message ID: @.***>

Johannes099 commented 9 months ago

Yea, thx , i kinda solved it, but where , can i configure the "" commands" ? Like the .menu likes

SlavyanDesu commented 3 months ago

Pretty sure it's .help. Sorry for the late reply, I don't even know is it still working or not.

Johannes099 commented 3 months ago

No, in the meanwhile i fixed it by manually changing all versions but 200moderatate errors