patch-package
patch-package copied to clipboard
path fails on 'Diffing your files with clean files' stage
How to reproduce
$ mkdir foo && cd foo
$ yarn init -y
$ yarn add @tarojs/mini-runner -D
# change things
$ yarn patch-package @tarojs/mini-runner
This will cause:
➜ yarn patch-package @tarojs/mini-runner
yarn run v1.22.17
$ /myProject/node_modules/.bin/patch-package @tarojs/mini-runner
patch-package 6.4.7
• Creating temporary folder
• Installing @tarojs/[email protected] with yarn
• Diffing your files with clean files
Error: ENOENT: no such file or directory, stat '/myProject/node_modules/@tarojs/mini-runner/node_modules/@tarojs/taro-loader/node_modules/.bin/acorn'
at Object.statSync (node:fs:1536:3)
at Object.statSync (/myProject/node_modules/graceful-fs/polyfills.js:312:16)
at checkStats (/myProject/node_modules/patch-package/node_modules/fs-extra/lib/copy-sync/copy-sync.js:171:22)
at checkPaths (/myProject/node_modules/patch-package/node_modules/fs-extra/lib/copy-sync/copy-sync.js:183:31)
at copyDirItem (/myProject/node_modules/patch-package/node_modules/fs-extra/lib/copy-sync/copy-sync.js:117:20)
at /myProject/node_modules/patch-package/node_modules/fs-extra/lib/copy-sync/copy-sync.js:111:39
at Array.forEach (<anonymous>)
at copyDir (/myProject/node_modules/patch-package/node_modules/fs-extra/lib/copy-sync/copy-sync.js:111:23)
at mkDirAndCopy (/myProject/node_modules/patch-package/node_modules/fs-extra/lib/copy-sync/copy-sync.js:106:3)
at onDir (/myProject/node_modules/patch-package/node_modules/fs-extra/lib/copy-sync/copy-sync.js:97:37) {
errno: -2,
syscall: 'stat',
code: 'ENOENT',
path: '/myProject/node_modules/@tarojs/mini-runner/node_modules/@tarojs/taro-loader/node_modules/.bin/acorn'
}
/myProject/node_modules/patch-package/dist/makePatch.js:218
throw e;
^
I have the same problem too.