electron / electron/forge

every commands fail without any errors or infomations

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

7.10.2

### Electron version

v38.3.0

### Operating system

win10

### Last known working Forge version

first time using Forge

### Expected behavior

works as expected

### Actual behavior

nothing happens

### Steps to reproduce

1. init a new electron project that follows https://www.electronjs.org/docs/latest/
2. install forge manually that follows https://www.electronforge.io/import-existing-project#setting-up-forge-manually
3. try to run forge commands and fails without any errors

the reason why i install forge manually is none of the import scripts works for me

if use this way
```
npm install --save-dev @electron-forge/cli
yarn dlx electron-forge import
```
i got `× Pruning deleted modules`

if use
```
cd my-app
npm install --save-dev @electron-forge/cli
npm exec --package=@electron-forge/cli -c "electron-forge import"
```

i got

```
› Existing Electron Forge configuration detected
› We have attempted to convert your app to be in a format that Electron Forge understands.

Thanks for using Electron Forge!

C:\Users\user\Desktop\electronize-mds>to #_undefined_# 2>NUL || title C:\WINDOWS\system32\cmd.exe & "" "\..\@electron-forge\cli\dist\electron-forge.js" import
'""' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
```

### Additional information

_No response_

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.