Electron-packager bluid get errors


#1

I’m in platform windows 10

My app is total fine with command:
PS W:\myapp> election .

But, when I use this command to build:
PS W:\myapp> electron-packager ./ --all

get errors:
module.js:327
throw err;
^

Error: Cannot find module 'package.json’
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at getNameAndVersion (C:\Users\kiochan\AppData\Roaming\npm\node_modules\electron-packager\index.js:52:13)
at packager (C:\Users\kiochan\AppData\Roaming\npm\node_modules\electron-packager\index.js:207:3)
at Object. (C:\Users\kiochan\AppData\Roaming\npm\node_modules\electron-packager\cli.js:22:1)
at Module._compile (module.js:409:26)
at Object.Module._extensions…js (module.js:416:10)
at Module.load (module.js:343:32)

code in my package.json
{
“name”: “myapp”,
“version”: “0.1.0”,
“main”: “main.js”
}

my work dir
myapp
|-app
| |-main.html
|-mian.js
|-package.json

and I installed electron-packager globle

PS W:> node -v
v4.4.7
PS W:> npm -v
2.15.8
PS W:> electron -v
v1.3.2

I dont understand why find module 'package.json’
it is not even a module xD
where is going worng?