Npm install error giphy version

When run “npm install”, I obtain those errors:

**ERROR** Failed to apply patch for package @giphy/js-analytics at path

    node_modules/@giphy/js-analytics

  This error was caused because @giphy/js-analytics has changed since you
  made the patch file for it. This introduced conflicts with your patch,
  just like a merge conflict in Git when separate incompatible changes are
  made to the same piece of code.

  Maybe this means your patch file is no longer necessary, in which case
  hooray! Just delete it!

  Otherwise, you need to generate a new patch file.

  To generate a new one, just repeat the steps you made to generate the first
  one.

  i.e. manually make the appropriate file changes, then run

    patch-package @giphy/js-analytics

  Info:
    Patch file: patches/@giphy+js-analytics+4.0.7.patch
    Patch was made for version: 4.0.7
    Installed version: 4.1.1


**ERROR** Failed to apply patch for package @giphy/js-brand at path

    node_modules/@giphy/js-brand

  This error was caused because @giphy/js-brand has changed since you
  made the patch file for it. This introduced conflicts with your patch,
  just like a merge conflict in Git when separate incompatible changes are
  made to the same piece of code.

  Maybe this means your patch file is no longer necessary, in which case
  hooray! Just delete it!

  Otherwise, you need to generate a new patch file.

  To generate a new one, just repeat the steps you made to generate the first
  one.

  i.e. manually make the appropriate file changes, then run

    patch-package @giphy/js-brand

  Info:
    Patch file: patches/@giphy+js-brand+2.0.4.patch
    Patch was made for version: 2.0.4
    Installed version: 2.2.2

---
patch-package finished with 2 error(s).
npm notice
npm notice New minor version of npm available! 8.12.2 -> 8.15.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.15.1
npm notice Run npm install -g npm@8.15.1 to update!
npm notice
npm ERR! code 1
npm ERR! path /home/sviluppo/vianova-meet-master/jitsi-meet
npm ERR! command failed
npm ERR! command sh -c patch-package --error-on-fail && jetify

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/publisher/.npm/_logs/2022-07-29T11_04_20_607Z-debug-0.log

1 Like

I have the same issue

Hi, I realized that updating to version 7577 I don’t have this anomaly.
They solved that problem …

Can you please explain this version? I have downloaded the latest jitsi from GitHub when installing am getting the same issue.

Is this the first time you download the sources and compile them? Or if you have already done so, chances are you need to clean up the npm from scratch.

esempio:


sudo npm cache clean --force
 
sudo rm -rf node_modules package-lock.json

Hi, yes this is my first time. I was reading with many other peoples having the same problems. someone suggested

npm update

command when I run that my problem is solved. Am also hoping this didn’t make any new problem now.

as a first command I would have launched

npm install

then once finished

make