ds300 / ds300/patch-package

patch-package with yarn dlx error

Open
#535 5 comments 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
11.2k
Forks
325
PR merge metrics
No merged PRs in 30d

Description

**What is `yarn dlx`?**

Simply similar npx but in [yarn version](https://yarnpkg.com/cli/dlx). Idk if this issue from yarn or from patch-package. But I will still add this issue for who want using yarn dlx

**How to reproduce?**

1. Create some patch to whatever package you want
2. Run `yarn dlx patch-package `
3. And you will getting this:

here my case:
yarn dlx patch-package react-native-snap-carousel
➤ YN0000: ┌ Resolution step
➤ YN0061: │ rimraf@npm:2.7.1 is deprecated: Rimraf versions prior to v4 are no longer supported
➤ YN0061: │ glob@npm:7.2.3 is deprecated: Glob versions prior to v9 are no longer supported
➤ YN0061: │ inflight@npm:1.0.6 is deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
➤ YN0000: └ Completed in 1s 62ms
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed
➤ YN0000: ┌ Link step
➤ YN0000: └ Completed in 0s 288ms
➤ YN0000: Done with warnings in 1s 405ms

patch-package 8.0.0
• Creating temporary folder
• Installing react-native-snap-carousel@3.9.1 with yarn

{
status: 1,
signal: null,
output: [
null,
,

],
pid: 11348,
stdout: ,
stderr: ,
error: null
}

/private/var/folders/j8/p7gb5ydj5cb4wpzqjgf33zfh0000gn/T/xfs-b0e03d33/dlx-11343/node_modules/patch-package/dist/makePatch.js:395
throw e;
^
{
status: 1,
signal: null,
output: [
null,
Buffer(192) [Uint8Array] [
27, 91, 51, 49, 109, 27, 91, 49, 109, 85, 110, 107,
110, 111, 119, 110, 32, 83, 121, 110, 116, 97, 120, 32,
69, 114, 114, 111, 114, 27, 91, 50, 50, 109, 27, 91,
51, 57, 109, 58, 32, 85, 110, 115, 117, 112, 112, 111,
114, 116, 101, 100, 32, 111, 112, 116, 105, 111, 110, 32,
110, 97, 109, 101, 32, 40, 34, 45, 45, 105, 103, 110,
111, 114, 101, 45, 115, 99, 114, 105, 112, 116, 115, 34,
41, 46, 10, 10, 36, 32, 121, 97, 114, 110, 32, 105,
110, 115, 116, 97,
... 92 more items
],
Buffer(0) [Uint8Array] []
],
pid: 11348,
stdout: Buffer(192) [Uint8Array] [
27, 91, 51, 49, 109, 27, 91, 49, 109, 85, 110, 107,
110, 111, 119, 110, 32, 83, 121, 110, 116, 97, 120, 32,
69, 114, 114, 111, 114, 27, 91, 50, 50, 109, 27, 91,
51, 57, 109, 58, 32, 85, 110, 115, 117, 112, 112, 111,
114, 116, 101, 100, 32, 111, 112, 116, 105, 111, 110, 32,
110, 97, 109, 101, 32, 40, 34, 45, 45, 105, 103, 110,
111, 114, 101, 45, 115, 99, 114, 105, 112, 116, 115, 34,
41, 46, 10, 10, 36, 32, 121, 97, 114, 110, 32, 105,
110, 115, 116, 97,
... 92 more items
],
stderr: Buffer(0) [Uint8Array] [],
error: null
}

- Node.js version: v20.13.1
- Yarn version: v3.6.4

✨**But if I run with npx this will not issue**

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.