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.

1.3.0 breaks on install

See original GitHub issue

I have prism-react-renderer as dependency of my Docusaurus project and upon upgrading this package it breaks at yarn install:

error /app/node_modules/prism-react-renderer: Command failed.
Exit code: 127
Command: patch-package
Arguments:
Directory: /app/node_modules/prism-react-renderer
Output:
/bin/sh: patch-package: not found

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:15
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

7reactions
jpdrivercommented, Feb 9, 2022

my sincerest apologies to all who ran into this today. way to go for my first release of this lib huh 😅

after further investigation (h/t to @ryan-roemer for the info above) the simplest solution was to move the patch-package invocation to a prebuild script.

when you think about it, this is actually when we want to modify prism so we can vendor it anyway. when a consuming project installs prism-react-renderer there’s no need to repeat the modification.

this solution avoids both needing to add dependencies and also avoids shipping the /patches dir as part of our archive.

5reactions
xenoworfcommented, Feb 8, 2022

My team is seeing a similar error when installing via npm install:

> prism-react-renderer@1.3.0 postinstall /Users/me/my-project/node_modules/prism-react-renderer
> patch-package

sh: patch-package: command not found
npm WARN @cerner/package-json-lint-config-terra@1.2.0 requires a peer of @cerner/package-json-lint@^0.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @octokit/plugin-request-log@1.0.4 requires a peer of @octokit/core@>=3 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-plugin-formatjs@2.21.0 requires a peer of eslint@8 but none is installed. You must install peer dependencies yourself.

npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! prism-react-renderer@1.3.0 postinstall: `patch-package`
npm ERR! spawn ENOENT
Read more comments on GitHub >

github_iconTop Results From Across the Web

[RFC] 1.3.0 Release Candidate #6422 - dmlc/xgboost - GitHub
Breaking changes: Starting from 1.3.0 release, XGBoost no longer supports MacOS 10.13 (High Sierra). Known issue: Python packaging does not yet ...
Read more >
Announcing Poetry 1.3.0 | Blog
Fix an issue where a package from the wrong source was installed for a multiple-constraints dependency with different sources (#6747).
Read more >
Cant Install fltk-1.3.0 ! - Debian User Forums
Re: Cant Install fltk-1.3.0 ! ... You get that build error because ou are missing some build-depends. The error says you need to...
Read more >
OHS (NATIVE) BUNDLE PATCH 12.2.1.3.0(ID:191219.2319 ...
1.3.0 (ID:191219.2319) Breaks Oracle Access Manager (OAM) WebGate - Resources Can No Longer Be Accessed (Doc ID 2652898.1).
Read more >
unable to run librdkafka=1.3.0 over docker - Stack Overflow
This has the unfortunate side effect of breaking images that depend on specific package versions. The currently available librdkafka 1.
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