You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unable to infer name or version. Please specify a name and version.
Cannot find module 'package.json' from '/Users/gabriel/Code'(Properties not found yet: dependencies.electron-prebuilt,devDependencies.electron-prebuilt)
What I'm confused about is the "cannot find module..." bit, because process.cwd() should return /Users/gabriel/Code/sight, but electron-packager is looking in the parent dir. Am I missing something completely obvious?
You need to specify the Electron version, either in the command line (--version) or in package.json (usually found in devDependencies as electron-prebuilt). The error message should be clearer about that.
Ah, of course. Not sure if I skimmed the docs too quickly, there's info missing that should be there, or I should just be smarter, but adding electron-prebuilt to my dev dependencies solved the problem.
I guess the resolve dir being wrong is caused by node-resolve searching the pwd, not finding version in the package.json there, and then moving to parent and failing there (thus the dir sent to err.message is the parent dir)?
I guess the resolve dir being wrong is caused by node-resolve searching the pdw, not finding version in the package.json there, and then moving to parent and failing there (thus the dir sent to err.message is the parent dir)?
When I run
electron-packager . --all
with the following directory structure:I get the following error:
What I'm confused about is the "cannot find module..." bit, because process.cwd() should return /Users/gabriel/Code/sight, but electron-packager is looking in the parent dir. Am I missing something completely obvious?
Here's my package.json
"electron-packager": "^7.0.3",
electron-packager . --all
but also
electron-packager . --platform mas --arch x64
or any othersv1.2.1
OSX 10.11.5 x64
all/any
no
run
electron-packager . --all
on my machine. 📦The text was updated successfully, but these errors were encountered: