Skip to content

no .bin no error - using node from snapcraft #4150

@sixcorners

Description

@sixcorners

Pre-flight checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project uses.
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions