code-chat-br / whatsapp-api

CodeChat - WhatsApp Api

Home Page:https://docs.codechat.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Yarn and npm dont works

suissa opened this issue · comments

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

I made works with:

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

in package.json