Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoid ENOENT error when rebuilding deps #487

Merged
merged 1 commit into from
Feb 20, 2024
Merged

avoid ENOENT error when rebuilding deps #487

merged 1 commit into from
Feb 20, 2024

Conversation

tsnobip
Copy link
Contributor

@tsnobip tsnobip commented Feb 20, 2024

Without this fix, I frequently get the following error:

# This file contains the result of Yarn building a package (rescript-relay@virtual:d9ee19c7d21b51ab446d207037b2e76a866dce1033d055f68eea718d1aad4e8e07b9ebe79e1234ad68e9c3b88e667d22ab495f68c31bf24afd238dcea56f49b1#npm:3.0.0-rc.1)
# Script name: postinstall

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

@zth
Copy link
Owner

zth commented Feb 20, 2024

Great! Mind adding a changelog entry too?

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
```
@zth zth merged commit 538af55 into zth:master Feb 20, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants