Electron-packager: Error: Unable to find a valid app due to missing package.json

Created on 16 Feb 2016  ·  3Comments  ·  Source: electron/electron-packager

Which version of electron-packager are you using?

5.2.1

What cli arguments are you passing?

electron-packager ./src . --platform=win32 --arch=x64 --asar --version=0.36.7 --overwrite

What platform are you running electron-packager on? What platform(s) are you building for?

Running on Windows 7, building for Windows 7

Is there a stack trace in the error message you're seeing?

Error: Unable to find a valid app

When possible, please provide instructions to reproduce your problem

Simply run the command above.

Most helpful comment

The reason is that package.json is required in the sources directory.

All 3 comments

The reason is that package.json is required in the sources directory.

这个问题按照上面的方式都不行

有没有解决了的

Was this page helpful?
0 / 5 - 0 ratings

Related issues

corvinrok picture corvinrok  ·  4Comments

dland512 picture dland512  ·  5Comments

Bharwcb picture Bharwcb  ·  5Comments

leanderBehr picture leanderBehr  ·  3Comments

Orrison picture Orrison  ·  3Comments