code-chat-br / whatsapp-api

CodeChat - WhatsApp Api
https://docs.codechat.dev
Apache License 2.0
593 stars 245 forks source link

Yarn and npm dont works #86

Closed suissa closed 9 months ago

suissa commented 10 months ago

yarn i yarn run v1.22.17 warning package.json: License should be a valid SPDX license expression error Command "i" not found.

and npm: npm i npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: @whiskeysockets/baileys@6.5.0 npm ERR! Found: jimp@0.22.10 npm ERR! node_modules/jimp npm ERR! jimp@"^0.22.10" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peerOptional jimp@"^0.16.1" from @whiskeysockets/baileys@6.5.0 npm ERR! node_modules/@whiskeysockets/baileys npm ERR! @whiskeysockets/baileys@"^6.4.0" from the root project npm ERR! npm ERR! Conflicting peer dependency: jimp@0.16.13 npm ERR! node_modules/jimp npm ERR! peerOptional jimp@"^0.16.1" from @whiskeysockets/baileys@6.5.0 npm ERR! node_modules/@whiskeysockets/baileys npm ERR! @whiskeysockets/baileys@"^6.4.0" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! npm ERR! For a full report see: npm ERR! /Users/userdev/.npm/_logs/2023-10-21T23_01_08_541Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: /Users/userdev/.npm/_logs/2023-10-21T23_01_08_541Z-debug-0.log

suissa commented 10 months ago

I made works with:

"resolutions": { "jimp": "^0.16.1" },

in package.json