# Ares-install js-service(templete) error

**URL:** <https://forum.webosose.org/t/ares-install-js-service-templete-error/2050>\
**Category:** Platform Development\
**Created:** [March 14, 2023, 7:31am UTC](https://forum.webosose.org/t/ares-install-js-service-templete-error/2050 "2023-03-14T07:31:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tioon74](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/tioon74/32/798_2.png) [@tioon74](https://forum.webosose.org/u/tioon74)\
**Post date:** [March 14, 2023, 7:31am UTC](https://forum.webosose.org/t/ares-install-js-service-templete-error/2050/1 "2023-03-14T07:31:43Z")

</div>

ares-install js-service(templete) error

Hello,I'm currently using lg-web-os.  
but I faced a error in ares-install to emulator.

I show you error situation.

1.I generate js-service app using ares  
-ares-generate -t js-service jsapp  
2.I package js-service app using ares  
-ares-package --pkgid jsapp  
3.I install js-service app to emulator(Lg-web-os)  
-ares-install --device emulator jsapp\_1.0.0\_all.ipk

but, I faced a error in step 3.  
The contents of the error are as follows.

ares-install ERR! [com.webos.appInstallService failure]: luna-send command failed

I don't know why the error is happening.

I use ubuntu 20.04 version,  
ares 2.4.0 version,  
node 18.14.2 version,  
npm 9.6.0 version

 ![Screenshot from 2023-03-14 16-36-16](https://canada1.discourse-cdn.com/flex031/uploads/developer1/original/1X/08f757170020c274ca27dbd4beacab7096575676.png)

---

<div class="post-metadata">

**Author:** ![NERGI](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/nergi/32/364_2.png) [@NERGI](https://forum.webosose.org/u/NERGI)\
**Post date:** [March 14, 2023, 8:44am UTC](https://forum.webosose.org/t/ares-install-js-service-templete-error/2050/2 "2023-03-14T08:44:35Z")

</div>

Hi @tioon74, welcome to the forum.

To install the sample JS service, do the followings:

1. Register your emulator (`ares-setup-device`).
2. Create a dummy app.
3. Create a JS service.
4. Package the service (step 3) with the app (step 2).
5. Install the package file (`.ipk`) to your emulator.

I suggest you to check the followings:

- Check whether you register your emulator correctly. (Check account, IP, port)
- Prepare a dummy app (try with `ares-generate` ).
- Prepare a JS service (Use `-t js_service `, not `-t js-service`)

---

<div class="post-metadata">

**Author:** ![tioon74](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/tioon74/32/798_2.png) [@tioon74](https://forum.webosose.org/u/tioon74)\
**Post date:** [March 14, 2023, 9:50am UTC](https://forum.webosose.org/t/ares-install-js-service-templete-error/2050/3 "2023-03-14T09:50:13Z")

</div>

Thank you for your reply.

I did everything you advice me to do.  
but, I faced same luna-send error.  
The webapp ipk install well to my emulator,not js\_service.  
The situation that I faced is as shown in the picture below.

 ![Screenshot from 2023-03-14 18-42-05](https://canada1.discourse-cdn.com/flex031/uploads/developer1/original/1X/8e294e862261443f5bab3c489539fc2fd6d00df7.png)

---

<div class="post-metadata">

**Author:** ![NERGI](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/nergi/32/364_2.png) [@NERGI](https://forum.webosose.org/u/NERGI)\
**Post date:** [March 14, 2023, 1:52pm UTC](https://forum.webosose.org/t/ares-install-js-service-templete-error/2050/4 "2023-03-14T13:52:33Z")

</div>

1. Your packaging command should be as follows:

2. Where did you get the information about the `--pkgid` option in `ares-package`? That option doesn't exist in our official guide. (refer to the link in 1.)

---

<div class="post-metadata">

**Author:** ![tioon74](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/tioon74/32/798_2.png) [@tioon74](https://forum.webosose.org/u/tioon74)\
**Post date:** [March 14, 2023, 3:57pm UTC](https://forum.webosose.org/t/ares-install-js-service-templete-error/2050/5 "2023-03-14T15:57:45Z")

</div>

thank you for your reply.  
I understand lg web os official guide

I kept all guide.  
ares-package (app\_name)  
but I show error and Tip  
This Tip show me that using --pkgid or --pkginfofile

 ![Screenshot from 2023-03-15 00-19-01](https://canada1.discourse-cdn.com/flex031/uploads/developer1/original/1X/b443b1497876015e1072092d806e97a6fb460c2e.png)

---

<div class="post-metadata">

**Author:** ![NERGI](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/nergi/32/364_2.png) [@NERGI](https://forum.webosose.org/u/NERGI)\
**Post date:** [March 14, 2023, 11:30pm UTC](https://forum.webosose.org/t/ares-install-js-service-templete-error/2050/6 "2023-03-14T23:30:55Z")

</div>

You keep trying to package the service template without a dummy app.

You created a template with the `js_service` option. This template is a service, not an app. And this service MUST be packaged with a dummy app.

`ares-package [App Dir] [Service Dir]`

---

<div class="post-metadata">

**Author:** ![tioon74](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/tioon74/32/798_2.png) [@tioon74](https://forum.webosose.org/u/tioon74)\
**Post date:** [March 15, 2023, 4:07pm UTC](https://forum.webosose.org/t/ares-install-js-service-templete-error/2050/7 "2023-03-15T16:07:20Z")

</div>

Thank you for your tips.  
Thanks to you, I was able to solve the error.
