ds300 / patch-package

Fix broken node modules instantly šŸƒšŸ½ā€ā™€ļøšŸ’Ø
MIT License
10.42k stars 294 forks source link

**ERROR** Failed to patch on CircleCI #403

Open kybarg opened 2 years ago

kybarg commented 2 years ago

Am I doing anything wrong? Got stuck with this issue for quite a while

Config

commands:
  install_js:
    steps:
      - run:
          name: patch-package hash
          command: Get-FileHash patches/* -Algorithm MD5 > patches.hash
      - restore_cache:
          keys:
            - dependency-cache-{{ checksum "package-lock.json" }}-{{ checksum "patches.hash" }}
            - dependency-cache-
      - run:
          name: Check node version
          command: |
            if(!((node -v) -match "^v14")) {
              exit 1
            }
      - run:
          name: Install jsdependencies
          command: npm ci

Log

patch-package 6.4.7
Applying patches...
Error: Patch file found for package encrypted-smiley-secure-protocol which is not present at node_modules/encrypted-smiley-secure-protocol
Error: Patch file found for package robot3 which is not present at node_modules/robot3
---
patch-package finished with 2 error(s).

Exited with code exit status 1
CircleCI received exit code 1
terryatgithub commented 2 years ago

yes, I encountered the same error with another module:

npx: installed 50 in 2.256s
patch-package 6.4.7
Applying patches...
Error: Patch file found for package react-native-responsive-linechart which is not present at node_modules/react-native-responsive-linechart
---

anyone can give some clues about it ? thank you.