package.json local paths are not supported
- Dominant language
- TypeScript
- Stars
- 7.1k
- Forks
- 641
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 30
Description
### Pre-flight checklist
- [X] I have read the [contribution documentation](https://github.com/electron/forge/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [code of conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project uses.
- [X] I have searched the issue tracker for a bug that matches the one I want to file, without success.
### Electron Forge version
6.1.1
### Electron version
v24.3.0
### Operating system
macOS 13.3.1
### Last known working Electron Forge version
_No response_
### Expected behavior
`npx electron-forge make` succeeds.
### Actual behavior
It outputs an error message saying
> An unhandled rejection has occurred inside Forge:
Error: ENOENT: no such file or directory, stat '/private/var/folders/4c/w1bj9h4d5_df436ckn8xxmqr0000gq/T/electron-packager/darwin-x64/BIMx-darwin-x64-bvme29/Electron.app/Contents/Resources/app/node_modules/connector'
### Steps to reproduce
Have a dependency in package.json specified by a relative path like this: (see [npm docs](https://docs.npmjs.com/cli/v9/configuring-npm/package-json#local-paths))
```
"dependencies": {
"foo": "file:../../foo/foo.node"
}
```
Run `npx electron-forge make`.
### Additional information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.