unable to run packaged .nw file: Cannot extract package Failed to unzip the package file.

6 views
Skip to first unread message

Patrick

unread,
Mar 18, 2013, 11:36:20 PM3/18/13
to node-...@googlegroups.com
Hi all,

I'm just starting with node-webkit and running my project locally via nw.exe myprojectpath works fine but as soon as I try to zip the project up and run it via

nw.exe app.nw I get an error:

= Cannot extract package 
= Failed to unzip the package file.

I made sure that the package.json is at the root directory so that should be fine.

Can I get more details on what went wrong?
Are there any known issues with packaging on Win8?

Thanks for your help.
cheers,
Patrick

Donghao Ma

unread,
Mar 19, 2013, 2:00:56 AM3/19/13
to node-...@googlegroups.com
make sure that your files are in the root of zip.

在 2013年3月19日星期二UTC+8上午11时36分20秒,Patrick写道:

Patrick Klug

unread,
Mar 19, 2013, 4:02:20 AM3/19/13
to node-...@googlegroups.com
I triple checked that the package.json as well as the index.html is in the root directory.

--
You received this message because you are subscribed to the Google Groups "node-webkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-webkit...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Donghao Ma

unread,
Mar 19, 2013, 4:29:02 AM3/19/13
to node-...@googlegroups.com
May you share the app.nw file? 


Patrick Klug

unread,
Mar 19, 2013, 5:12:09 AM3/19/13
to node-...@googlegroups.com
I would need to clean up a fair bit first. Just wanted to know if this is a known issue or if there's a way to get a more detailed error report.

On Tue, Mar 19, 2013 at 6:29 PM, Donghao Ma <owen...@gmail.com> wrote:
May you share the app.nw file? 

Patrick Klug

unread,
Mar 21, 2013, 1:46:02 AM3/21/13
to node-...@googlegroups.com
FYI
I have found the cause of this. In my case it was a file which had a double dot in the file name so myfile..text for example. this causes the extractor to malfunction.

the name was a mistake so it's good that I found it.

aqee...@gmail.com

unread,
Jul 12, 2013, 1:27:46 AM7/12/13
to node-...@googlegroups.com
@patrick :
check the package.json there should be app for name.
{
  "name": "app",
  "main": "index.html"
}

in sample app it is as below :

{
  "name": "nw-demo",
  "main": "index.html"

datc...@gmail.com

unread,
Apr 28, 2014, 9:46:14 PM4/28/14
to node-...@googlegroups.com, aqee...@gmail.com
Step 1:  D:\node-webkit-v0.9.2-win-ia32 folder i created two files: index.html and package.json. I used 7z to compress it. 
Step 2: in CMD(window) you move pointer to node-webkit-v0.9.2-win-ia32 folder and run: nw app.nw

Have a good success!!!
 

Vào 12:27:46 UTC+7 Thứ sáu, ngày 12 tháng bảy năm 2013, aqee...@gmail.com đã viết:
app.nw.7z
Reply all
Reply to author
Forward
0 new messages