question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't patch package

See original GitHub issue

Just installed patch-package@6.4.6 and modified my package in node_modules and tried to run npx patch-package lottie-react-native but ended up with error.

npx patch-package lottie-react-native
patch-package 6.4.6
• Creating temporary folder
• Installing lottie-react-native@3.5.0 with npm
{
  status: 1,
  signal: null,
  output: [ null, null, null ],
  pid: 17928,
  stdout: null,
  stderr: null,
  error: null
}

/Users/name/folder/appName/node_modules/patch-package/dist/makePatch.js:218
        throw e;
        ^
{
  status: 1,
  signal: null,
  output: [ null, null, null ],
  pid: 17928,
  stdout: null,
  stderr: null,
  error: null
}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

8reactions
lucaszhu2zgfcommented, Jun 18, 2021

still get the same error at @v6.4.7 @ds300

patch-package 6.4.7 • Creating temporary folder • Installing ant-design-vue@2.1.6 with npm { status: 254, signal: null, output: [ null, null, null ], pid: 38727, stdout: null, stderr: null, error: null }

/Users/zhuguifeng/Documents/webank/init/node_modules/patch-package/dist/makePatch.js:218 throw e; ^ { status: 254, signal: null, output: [ null, null, null ], pid: 38727, stdout: null, stderr: null, error: null }

2reactions
deorstcommented, Dec 1, 2022

I ran into this issue trying to run yarn patch-package <package_name> in vscode terminal. It failed, but for some reason it mac’s terminal it worked fine without any changes applied to patch-package. I checked and the node and yarn versions were same between both terminals.

Read more comments on GitHub >

github_iconTop Results From Across the Web

patch-package - npm
patch -package lets app authors instantly make and keep fixes to npm dependencies. It's a vital band-aid for those of us living on...
Read more >
Getting errors when patching a npm package - Stack Overflow
The problem here is that you're using two different tools to patch the npm package, and using a different one locally than in...
Read more >
patch-package | Fix broken node modules instantly - YouTube
patch - package is a tool that has saved me a couple of times when I found a bug in an npm package...
Read more >
patch-package - Bountysource
ERROR Failed to apply patch for package react-native at path ... patch-package 6.2.2 • Creating temporary folder TypeError: Cannot read property ...
Read more >
Patch-package: Make and Preserve Fixes to Npm ... - Morioh
If it's a transitive dependency patch-package can't detect that it is safe to ignore and will throw an error. To fix this, mark...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found