Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
avoid ENOENT error when rebuilding deps (#487)
Without this fix, I frequently get the following error: ``` node:fs:3003 binding.copyFile( ^ Error: ENOENT: no such file or directory, copyfile '/Users/paul/code/miriad/packages/web/node_modules/rescript-relay/ppx-macos-latest' -> '/Users/paul/code/miriad/packages/web/node_modules/rescript-relay/ppx' at Object.copyFileSync (node:fs:3003:11) at copyPlatformBinaries (/Users/paul/code/miriad/packages/web/node_modules/rescript-relay/postinstall.js:102:6) at Object.<anonymous> (/Users/paul/code/miriad/packages/web/node_modules/rescript-relay/postinstall.js:177:7) at Module._compile (node:internal/modules/cjs/loader:1376:14) at Module._extensions..js (node:internal/modules/cjs/loader:1435:10) at Module.load (node:internal/modules/cjs/loader:1207:32) at Module._load (node:internal/modules/cjs/loader:1023:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12) at node:internal/main/run_main_module:28:49 { errno: -2, code: 'ENOENT', syscall: 'copyfile', path: '/Users/paul/code/miriad/packages/web/node_modules/rescript-relay/ppx-macos-latest', dest: '/Users/paul/code/miriad/packages/web/node_modules/rescript-relay/ppx' } Node.js v20.10.0 ```
- Loading branch information