electron / electron/rebuild

Non ASCII paths causes ENOENT

Open
#582 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.1k
Forks
181
Avg merge
6h 44m
Merged PRs (30d)
3

Description

**Enviroment:**
- OS: Windows 10 Home Single Language 64
- node: 14.15.4
- electron: 11.2.0
- electron-rebuild: 2.3.4

**Action taken:**
```npm install```

**Output:**
```
An unhandled error occurred inside electron-rebuild
spawn C:\Program Files (x86)\Programaci�n\VS2019CE\MSBuild\Current\Bin\MSBuild.exe ENOENT

Error: spawn C:\Program Files (x86)\Programaci�n\VS2019CE\MSBuild\Current\Bin\MSBuild.exe ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)
at onErrorNT (internal/child_process.js:465:16)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
```

**_Note:_** The right path is `C:\Program Files (x86)\Programación\VS2019CE\MSBuild\Current\Bin\MSBuild.exe`.

**Workaround:**
- Reinstall in another folder with all ASCII characters (it was no fun).

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported `npm install` failure on Windows with a non-ASCII Visual Studio installation path. Trace how electron-rebuild locates and launches MSBuild, comparing the corrupted path in the error with the correct path shown in the report. Done means native module rebuilding works with non-ASCII paths and the behavior is covered by an appropriate test.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, node.js, typescript
Domain
build-system, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.