electron / electron/forge

no .bin no error - using node from snapcraft

Open
#4,150 0 comments 0 reactions 0 assignees View on GitHub
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.

### Forge version

none

### Electron version

none

### Operating system

Ubuntu 24.04 x64

### Last known working Forge version

_No response_

### Expected behavior

started electron app

### Actual behavior

```
$ rm -rf my-app
$ npx -y create-electron-app@latest my-app --template=base

✔ Resolving package manager: npm v11.9.0
✔ Resolving template: base
› Using @electron-forge/template-base (local module)
✔ Resolving Electron version: latest
› Using Electron version tag: latest
✔ Initializing directory
✔ Initializing git repository
✔ Preparing template
✔ Initializing template
✔ Installing template dependencies
$ ls my-app/node_modules/
debug electron-squirrel-startup ms
$ ls my-app/node_modules/.bin
ls: cannot access 'my-app/node_modules/.bin': No such file or directory
$ echo $NODE_ENV

$ cd my-app/
$ npm run start

> my-app@1.0.0 start
> electron-forge start

sh: 1: electron-forge: not found
$ cat package.json
{
"name": "my-app",
"productName": "my-app",
"version": "1.0.0",
"description": "My Electron application description",
"main": "src/index.js",
"private": true,
"scripts": {
"start": "electron-forge start",
"package": "electron-forge package",
"make": "electron-forge make",
"publish": "electron-forge publish",
"lint": "echo \"No linting configured\""
},
"keywords": [],
"author": {
"name": "sixcorners",
"email": "---"
},
"license": "MIT",
"dependencies": {
"electron-squirrel-startup": "^1.0.1"
}
}
```

### Steps to reproduce

snap install node
npx -y create-electron-app@latest my-app --template=base
cd my-app
npm run start

### Additional information

This might be because I'm using node from snap.
The issue is that there is no error message.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.