open-wa / wa-automate-nodejs

💬 🤖 The most reliable tool for chatbots with advanced features. Be sure to 🌟 this repository for updates!
https://docs.openwa.dev/
Other
3.15k stars 600 forks source link

npm WARN deprecated @discordjs/collection@0.5.0: no longer supported #3115

Closed Vinnybrunn00 closed 1 year ago

Vinnybrunn00 commented 1 year ago

Are you using the latest version of the library?

What type of session are you experiencing this issue on?

Multi-device and I have set multiDevice to true in my config OR am using the --multi-device flag

What type of host account are you experiencing this issue on?

Personal account (normal)

Mode

EASY API/CLI

Current Behavior

No response

Expected Behavior

No response

Steps To Reproduce

I created a folder called bots for my projects, when I include the code and run the command npm i --save @open-wa/wa-automate@latest I get the above error.

create() code OR full CLI command + CONFIG

No response

DEBUG INFO

› npm i --save @open-wa/wa-automate@latest 
npm WARN deprecated @discordjs/collection@0.5.0: no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm ERR! code 1
npm ERR! path /home/vinny/bott/node_modules/puppeteer
npm ERR! command failed
npm ERR! command sh -c node install.js

npm ERR! A complete log of this run can be found in: /home/vinny/.npm/_logs/2023-05-10T23_25_28_928Z-debug-0.log

Environment

- OS: Ubuntu 22.04.2
- Node: v18.16.0
- npm: 9.6.6

Screenshots/Logs

Captura de tela de 2023-05-10 20-30-38

Anything else?

No response

smashah commented 1 year ago

the issue you are seeing doesnt really have anything to do with those dependency warnings. Please open and share the debug log

smashah commented 1 year ago

@github-actions run

⚡ Release! ⚡ ```js (async () => { function exec(cmd) { try { execSync(cmd, {stdio: 'inherit'}) } catch (error) { console.log(`Status Code: ${error.status} with '${error.message}'`); } } //set the version type process.env.VERS = "patch" // Config const gitUserEmail = "github-actions[bot]@users.noreply.github.com"; const gitUserName = "github-actions[bot]"; exec(`echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc`); exec(`git config --global user.email "${gitUserEmail}"`); exec(`git config --global user.name "${gitUserName}"`); exec(`npm i -D`); exec(`npm run release-ci $VERS`); // types only package exec('npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN') exec(`npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN && npm run types:publish `); exec(`git commit -a -m 'updated types-only package'`); exec(`git push --force`); //comment on the issue var result = execSync(`npx auto-changelog -o ./tempchangelog.txt --commit-limit false --template ./compact-keepachangelog.hbs --stdout`).toString(); await postComment(result); //create changelog image exec(`npm run release-image`); exec(`git commit -a -m 'updated release-image'`); exec(`git push --force`); })(); ```
smashah commented 1 year ago

Changelog

🚀 Release 4.66.0 (2023-05-11)

Vinnybrunn00 commented 1 year ago

Hellow @smashah , i solved the problem. I had not installed the dependencies as root.

uuid was already updated.

thanks for helping :)