Patch react-native 0.59.9 failed
- Dominant language
- TypeScript
- Stars
- 11.2k
- Forks
- 325
- PR merge metrics
- No merged PRs in 30d
Description
Looks like it's due to many new files generated under new directory "third-party" after I build my project.
I can fix it by excluding that directory:
`yarn patch-package react-native --exclude third-party`
Below is the error log if not exclude:
`yarn patch-package react-native
yarn run v1.16.0
$ /Users/samuel.cai/Documents/app/node_modules/.bin/patch-package react-native
patch-package 6.2.0
• Creating temporary folder
• Installing react-native@0.59.9 with yarn
• Diffing your files with clean files
{
error: Error: spawnSync git ENOBUFS
at Object.spawnSync (internal/child_process.js:1041:20)
at Object.spawnSync (child_process.js:602:24)
at Function.spawnSync [as sync] (/Users/samuel.cai/Documents/app/node_modules/patch-package/node_modules/cross-spawn/index.js:26:23)
at Object.exports.spawnSafeSync (/Users/samuel.cai/Documents/app/node_modules/patch-package/dist/spawnSafe.js:10:32)
at git (/Users/samuel.cai/Documents/app/node_modules/patch-package/dist/makePatch.js:104:32)
at Object.makePatch (/Users/samuel.cai/Documents/app/node_modules/patch-package/dist/makePatch.js:135:26)
at /Users/samuel.cai/Documents/app/node_modules/patch-package/dist/index.js:48:25
at Array.forEach ()
at Object. (/Users/samuel.cai/Documents/app/node_modules/patch-package/dist/index.js:47:22)
at Module._compile (internal/modules/cjs/loader.js:774:30) {
errno: 'ENOBUFS',
code: 'ENOBUFS',
syscall: 'spawnSync git',
path: 'git',
spawnargs: [
'diff',
'--cached',
'--no-color',
'--ignore-space-at-eol',
'--no-ext-diff'
]
},
status: null,
signal: 'SIGTERM',
output: [
null,
,
],
pid: 87610,
stdout: ,
stderr:
}
/Users/samuel.cai/Documents/app/node_modules/patch-package/dist/makePatch.js:181
throw e;
^
{
error: Error: spawnSync git ENOBUFS
at Object.spawnSync (internal/child_process.js:1041:20)
at Object.spawnSync (child_process.js:602:24)
at Function.spawnSync [as sync] (/Users/samuel.cai/Documents/app/node_modules/patch-package/node_modules/cross-spawn/index.js:26:23)
at Object.exports.spawnSafeSync (/Users/samuel.cai/Documents/app/node_modules/patch-package/dist/spawnSafe.js:10:32)
at git (/Users/samuel.cai/Documents/app/node_modules/patch-package/dist/makePatch.js:104:32)
at Object.makePatch (/Users/samuel.cai/Documents/app/node_modules/patch-package/dist/makePatch.js:135:26)
at /Users/samuel.cai/Documents/app/node_modules/patch-package/dist/index.js:48:25
at Array.forEach ()
at Object. (/Users/samuel.cai/Documents/app/node_modules/patch-package/dist/index.js:47:22)
at Module._compile (internal/modules/cjs/loader.js:774:30) {
errno: 'ENOBUFS',
code: 'ENOBUFS',
syscall: 'spawnSync git',
path: 'git',
spawnargs: [
'diff',
'--cached',
'--no-color',
'--ignore-space-at-eol',
'--no-ext-diff'
]
},
status: null,
signal: 'SIGTERM',
output: [
null,
,
],
pid: 87610,
stdout: ,
stderr:
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.