heartsucker / node-deb

Debian packaging for Node.js projects
https://www.npmjs.com/package/node-deb
MIT License
205 stars 54 forks source link

Error parsing file #103

Open theone3nu opened 5 years ago

theone3nu commented 5 years ago

When i run this command in debian os node-deb --server.js /lib I am getting the following error.

dpkg-deb: error: parsing file 'server_1.0.1_all/DEBIAN/control' near line 7 package 'server': end of file before value of field 'Description' (missing final newline)

How to fix this please?

arvatoth-vcc commented 5 years ago

Please copy here the content of server_1.0.1_all/DEBIAN/control file. (The generated file.)

theone3nu commented 5 years ago

Hi, Thanks for the reply.

I couldn’t see any folder name server_1.0.1_all

Sent from my iPhone

On 25-Feb-2019, at 2:18 PM, Mihály Árva-Tóth notifications@github.com wrote:

Please copy here the content of server_1.0.1_all/DEBIAN/control file. (The generated file.)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

arvatoth-vcc commented 5 years ago

Can you give the full command line with parameters which do you execute? I think problem around the Maintainer.

theone3nu commented 5 years ago

node-deb --server.js /lib this is the command which i gave.

heartsucker commented 5 years ago

If you run node-deb --no-delete-temp <other args> it will retain the temp directory used to build the package so you can inspect it. I suspect this error happened because your control file is missing a trailing newline or perhaps you have an empty value for the description.

zeleni-samuraj commented 5 years ago

I had the same issue, you cannot leave out description in the package.json. You must enter something. Also it will give warning about maintainer, but the package will be built regardless.