Search code examples
node-webkitpackage.json

There is no 'package.json' - node-webkit app


I'm making my first desktop application using node-webkit.
I followed all the steps to package the app on windows but I'm getting this error:

There is no 'package.json' in the package, please make sure the 'package.json' is in the root of the package.

Although the package is in the root.


Solution

  • Ok I found my mistake. In fact, I was compressing the folder containing the package json and the other files. So what I made was like that:

    App.zip
    |
    |-App
       |-package.json
       |-Other files
    

    What is correct is this:

    App.zip
       |-package.json
       |-Other files