# Package failed

**URL:** <https://forums.creativeclouddeveloper.com/t/package-failed/7921>\
**Category:** Photoshop\
**Created:** [May 22, 2024, 2:40am UTC](https://forums.creativeclouddeveloper.com/t/package-failed/7921 "2024-05-22T02:40:58Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![rong](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@rong](https://forums.creativeclouddeveloper.com/u/rong)\
**Post date:** [May 22, 2024, 2:40am UTC](https://forums.creativeclouddeveloper.com/t/package-failed/7921/1 "2024-05-22T02:40:58Z")

</div>

In the develop environment, it works well. But when I package and install it, get -1 error.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/2X/d/d96776eb68a81a7386e48befcb8bb5575fc2b890.png)  
I’ve tried to change the ccx suffix to zip and unzip it, but failed.  
Here is the unzip fail error:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/2X/8/8d0292acf31d648904a7d4ed3ada036a0578fc5b.png)  
and the manifest:

```auto
{
  "id": "cute_guyver_swatches",
  "name": "hello_world_swatches",
  "version": "1.0.0",
  "main": "index.html",
  "host": [
    {
      "app": "PS",
      "minVersion": "23.0.0"
    }
  ],
  "manifestVersion": 5,
  "entrypoints": [
    {
      "type": "panel",
      "id": "cute_helmet_swatches",
      "label": {
        "default": "cute_helmet_swatches"
      },
      "minimumSize": {
        "width": 316,
        "height": 324
      },
      "maximumSize": {
        "width": 316,
        "height": 324
      },
      "preferredDockedSize": {
        "width": 316,
        "height": 324
      },
      "preferredFloatingSize": {
        "width": 316,
        "height": 324
      },
      "icons": [
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_D.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "dark",
            "darkest"
          ],
          "species": [
            "generic"
          ]
        },
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_N.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "lightest",
            "light"
          ],
          "species": [
            "generic"
          ]
        }
      ]
    },
    {
      "type": "panel",
      "id": "cute_helmet_line_swatches",
      "label": {
        "default": "cute_helmet_line_swatches"
      },
      "minimumSize": {
        "width": 316,
        "height": 324
      },
      "maximumSize": {
        "width": 316,
        "height": 324
      },
      "preferredDockedSize": {
        "width": 316,
        "height": 324
      },
      "preferredFloatingSize": {
        "width": 316,
        "height": 324
      },
      "icons": [
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_D.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "dark",
            "darkest"
          ],
          "species": [
            "generic"
          ]
        },
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_N.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "lightest",
            "light"
          ],
          "species": [
            "generic"
          ]
        }
      ]
    },
    {
      "type": "panel",
      "id": "cute_hair_swatches",
      "label": {
        "default": "cute_hair_swatches"
      },
      "minimumSize": {
        "width": 316,
        "height": 324
      },
      "maximumSize": {
        "width": 316,
        "height": 324
      },
      "preferredDockedSize": {
        "width": 316,
        "height": 324
      },
      "preferredFloatingSize": {
        "width": 316,
        "height": 324
      },
      "icons": [
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_D.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "dark",
            "darkest"
          ],
          "species": [
            "generic"
          ]
        },
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_N.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "lightest",
            "light"
          ],
          "species": [
            "generic"
          ]
        }
      ]
    },
    {
      "type": "panel",
      "id": "guyver_swatches",
      "label": {
        "default": "guyver_swatches"
      },
      "minimumSize": {
        "width": 316,
        "height": 324
      },
      "maximumSize": {
        "width": 316,
        "height": 324
      },
      "preferredDockedSize": {
        "width": 316,
        "height": 324
      },
      "preferredFloatingSize": {
        "width": 316,
        "height": 324
      },
      "icons": [
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_D.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "dark",
            "darkest"
          ],
          "species": [
            "generic"
          ]
        },
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_N.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "lightest",
            "light"
          ],
          "species": [
            "generic"
          ]
        }
      ]
    },
    {
      "type": "panel",
      "id": "guyver_line_swatches",
      "label": {
        "default": "guyver_line_swatches"
      },
      "minimumSize": {
        "width": 316,
        "height": 324
      },
      "maximumSize": {
        "width": 316,
        "height": 324
      },
      "preferredDockedSize": {
        "width": 316,
        "height": 324
      },
      "preferredFloatingSize": {
        "width": 316,
        "height": 324
      },
      "icons": [
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_D.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "dark",
            "darkest"
          ],
          "species": [
            "generic"
          ]
        },
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_N.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "lightest",
            "light"
          ],
          "species": [
            "generic"
          ]
        }
      ]
    },
    {
      "type": "panel",
      "id": "guyver_deco_swatches",
      "label": {
        "default": "guyver_deco_swatches"
      },
      "minimumSize": {
        "width": 316,
        "height": 324
      },
      "maximumSize": {
        "width": 316,
        "height": 324
      },
      "preferredDockedSize": {
        "width": 316,
        "height": 324
      },
      "preferredFloatingSize": {
        "width": 316,
        "height": 324
      },
      "icons": [
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_D.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "dark",
            "darkest"
          ],
          "species": [
            "generic"
          ]
        },
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_N.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "lightest",
            "light"
          ],
          "species": [
            "generic"
          ]
        }
      ]
    },
    {
      "type": "panel",
      "id": "guyver_deco_line_swatches",
      "label": {
        "default": "guyver_deco_line_swatches"
      },
      "minimumSize": {
        "width": 316,
        "height": 324
      },
      "maximumSize": {
        "width": 316,
        "height": 324
      },
      "preferredDockedSize": {
        "width": 316,
        "height": 324
      },
      "preferredFloatingSize": {
        "width": 316,
        "height": 324
      },
      "icons": [
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_D.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "dark",
            "darkest"
          ],
          "species": [
            "generic"
          ]
        },
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_N.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "lightest",
            "light"
          ],
          "species": [
            "generic"
          ]
        }
      ]
    }
  ],
  "icons": [
    {
      "width": 23,
      "height": 23,
      "path": "icons/dark.png",
      "scale": [
        1,
        2
      ],
      "theme": [
        "darkest",
        "dark",
        "medium"
      ]
    },
    {
      "width": 23,
      "height": 23,
      "path": "icons/light.png",
      "scale": [
        1,
        2
      ],
      "theme": [
        "lightest",
        "light"
      ]
    }
  ],
  "featureFlags": {
    "enableSWCSupport": true
  },
  "requiredPermissions": {
    "allowCodeGenerationFromStrings": true,
    "localFileSystem": "fullAccess",
    "network": {
      "domains": ["https://source.unsplash.com"]
    }
  }
}

```

Any ideas about this trouble issue? thanks very much.

---

<div class="post-metadata">

**Author:** ![rong](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@rong](https://forums.creativeclouddeveloper.com/u/rong)\
**Post date:** [May 22, 2024, 3:15am UTC](https://forums.creativeclouddeveloper.com/t/package-failed/7921/2 "2024-05-22T03:15:22Z")

</div>

Of course, another ccx is installed successfully, so I don’t think this is a common problem.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/2X/f/fb6893a2cf460321a0fb5016c2619f1f37c070c4.png)

---

<div class="post-metadata">

**Author:** ![Karmalakas](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/karmalakas/32/1048_2.png) [@Karmalakas](https://forums.creativeclouddeveloper.com/u/Karmalakas)\
**Post date:** [May 22, 2024, 7:20am UTC](https://forums.creativeclouddeveloper.com/t/package-failed/7921/3 "2024-05-22T07:20:01Z")

</div>

```auto
  "host": {
    "app": "PS",
    "minVersion": "23.0.0"
  },

```

---

<div class="post-metadata">

**Author:** ![Jarda](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/jarda/32/1909_2.png) [@Jarda](https://forums.creativeclouddeveloper.com/u/Jarda)\
**Post date:** [May 22, 2024, 8:05am UTC](https://forums.creativeclouddeveloper.com/t/package-failed/7921/4 "2024-05-22T08:05:13Z")

</div>

Did you try [Validator for UXP - Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=JaroslavBereza.uxpvalidator) ?

If it would still fail without seeing errors here I can add new rules if we can find what is wrong 😃

---

<div class="post-metadata">

**Author:** ![rong](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@rong](https://forums.creativeclouddeveloper.com/u/rong)\
**Post date:** [May 22, 2024, 8:51am UTC](https://forums.creativeclouddeveloper.com/t/package-failed/7921/5 "2024-05-22T08:51:34Z")

</div>

Thank for you help, this plugin works like a charm, helping me fix some problems.  
But the package still cant be installed and unzipped…

---

<div class="post-metadata">

**Author:** ![Jarda](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/jarda/32/1909_2.png) [@Jarda](https://forums.creativeclouddeveloper.com/u/Jarda)\
**Post date:** [May 22, 2024, 8:55am UTC](https://forums.creativeclouddeveloper.com/t/package-failed/7921/6 "2024-05-22T08:55:30Z")

</div>

Array in `host` is not supported. Are you sure you have object instead of array? UDT changes manifest.json automatically. But you should do it explicitly if you don’t pack with UDT.

---

<div class="post-metadata">

**Author:** ![Karmalakas](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/karmalakas/32/1048_2.png) [@Karmalakas](https://forums.creativeclouddeveloper.com/u/Karmalakas)\
**Post date:** [May 22, 2024, 8:58am UTC](https://forums.creativeclouddeveloper.com/t/package-failed/7921/7 "2024-05-22T08:58:09Z")

</div>

Yes 🙂 Exactly what I posted 😃 @rong, did you try it?

---

<div class="post-metadata">

**Author:** ![rong](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@rong](https://forums.creativeclouddeveloper.com/u/rong)\
**Post date:** [May 22, 2024, 9:20am UTC](https://forums.creativeclouddeveloper.com/t/package-failed/7921/8 "2024-05-22T09:20:42Z")

</div>

Yes, I’ve fixed it, but the same error happens.  
now the manifest is like this:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/2X/a/a4a2910e556c9a7c63c7dd81028b1aad5948b6e1.png)

---

<div class="post-metadata">

**Author:** ![Jarda](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/jarda/32/1909_2.png) [@Jarda](https://forums.creativeclouddeveloper.com/u/Jarda)\
**Post date:** [May 23, 2024, 3:47am UTC](https://forums.creativeclouddeveloper.com/t/package-failed/7921/9 "2024-05-23T03:47:26Z")

</div>

-1 could be anything [https://helpx.adobe.com/creative-cloud/kb/troubleshoot-common-addon-installation-issues.html](https://helpx.adobe.com/creative-cloud/kb/troubleshoot-common-addon-installation-issues.html)

Manifest error should be -4.

What if you take different plugin that can install and put your manifest in it? And then slowly change it file by file until it breaks?

---

<div class="post-metadata">

**Author:** ![rong](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@rong](https://forums.creativeclouddeveloper.com/u/rong)\
**Post date:** [May 24, 2024, 2:17am UTC](https://forums.creativeclouddeveloper.com/t/package-failed/7921/10 "2024-05-24T02:17:29Z")

</div>

I’ll try it later, thanks.

---

<div class="post-metadata">

**Author:** ![YesserKira](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/yesserkira/32/3796_2.png) [@YesserKira](https://forums.creativeclouddeveloper.com/u/YesserKira)\
**Post date:** [May 24, 2024, 1:30pm UTC](https://forums.creativeclouddeveloper.com/t/package-failed/7921/11 "2024-05-24T13:30:31Z")

</div>

Have done few adjustments, try it and let me know if it works.

```auto
{
  "id": "cute_guyver_swatches",
  "name": "hello_world_swatches",
  "version": "1.0.0",
  "main": "index.html",
  "host": [
    {
      "app": "PS",
      "minVersion": "23.0.0"
    }
  ],
  "manifestVersion": 5,
  "entrypoints": [
    {
      "type": "panel",
      "id": "cute_helmet_swatches",
      "label": {
        "default": "cute_helmet_swatches"
      },
      "minimumSize": {
        "width": 316,
        "height": 324
      },
      "maximumSize": {
        "width": 316,
        "height": 324
      },
      "preferredDockedSize": {
        "width": 316,
        "height": 324
      },
      "preferredFloatingSize": {
        "width": 316,
        "height": 324
      },
      "icons": [
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_D.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "dark",
            "darkest"
          ],
          "species": [
            "generic"
          ]
        },
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_N.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "lightest",
            "light"
          ],
          "species": [
            "generic"
          ]
        }
      ]
    },
    {
      "type": "panel",
      "id": "cute_helmet_line_swatches",
      "label": {
        "default": "cute_helmet_line_swatches"
      },
      "minimumSize": {
        "width": 316,
        "height": 324
      },
      "maximumSize": {
        "width": 316,
        "height": 324
      },
      "preferredDockedSize": {
        "width": 316,
        "height": 324
      },
      "preferredFloatingSize": {
        "width": 316,
        "height": 324
      },
      "icons": [
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_D.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "dark",
            "darkest"
          ],
          "species": [
            "generic"
          ]
        },
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_N.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "lightest",
            "light"
          ],
          "species": [
            "generic"
          ]
        }
      ]
    },
    {
      "type": "panel",
      "id": "cute_hair_swatches",
      "label": {
        "default": "cute_hair_swatches"
      },
      "minimumSize": {
        "width": 316,
        "height": 324
      },
      "maximumSize": {
        "width": 316,
        "height": 324
      },
      "preferredDockedSize": {
        "width": 316,
        "height": 324
      },
      "preferredFloatingSize": {
        "width": 316,
        "height": 324
      },
      "icons": [
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_D.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "dark",
            "darkest"
          ],
          "species": [
            "generic"
          ]
        },
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_N.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "lightest",
            "light"
          ],
          "species": [
            "generic"
          ]
        }
      ]
    },
    {
      "type": "panel",
      "id": "guyver_swatches",
      "label": {
        "default": "guyver_swatches"
      },
      "minimumSize": {
        "width": 316,
        "height": 324
      },
      "maximumSize": {
        "width": 316,
        "height": 324
      },
      "preferredDockedSize": {
        "width": 316,
        "height": 324
      },
      "preferredFloatingSize": {
        "width": 316,
        "height": 324
      },
      "icons": [
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_D.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "dark",
            "darkest"
          ],
          "species": [
            "generic"
          ]
        },
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_N.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "lightest",
            "light"
          ],
          "species": [
            "generic"
          ]
        }
      ]
    },
    {
      "type": "panel",
      "id": "guyver_line_swatches",
      "label": {
        "default": "guyver_line_swatches"
      },
      "minimumSize": {
        "width": 316,
        "height": 324
      },
      "maximumSize": {
        "width": 316,
        "height": 324
      },
      "preferredDockedSize": {
        "width": 316,
        "height": 324
      },
      "preferredFloatingSize": {
        "width": 316,
        "height": 324
      },
      "icons": [
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_D.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "dark",
            "darkest"
          ],
          "species": [
            "generic"
          ]
        },
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_N.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "lightest",
            "light"
          ],
          "species": [
            "generic"
          ]
        }
      ]
    },
    {
      "type": "panel",
      "id": "guyver_deco_swatches",
      "label": {
        "default": "guyver_deco_swatches"
      },
      "minimumSize": {
        "width": 316,
        "height": 324
      },
      "maximumSize": {
        "width": 316,
        "height": 324
      },
      "preferredDockedSize": {
        "width": 316,
        "height": 324
      },
      "preferredFloatingSize": {
        "width": 316,
        "height": 324
      },
      "icons": [
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_D.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "dark",
            "darkest"
          ],
          "species": [
            "generic"
          ]
        },
        {
          "width": 32,
          "height": 32,
          "path": "icons/icon_N.png",
          "scale": [
            1,
            2
          ],
          "theme": [
            "lightest",
            "light"
          ],

```

---

<div class="post-metadata">

**Author:** ![rong](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@rong](https://forums.creativeclouddeveloper.com/u/rong)\
**Post date:** [May 25, 2024, 7:34pm UTC](https://forums.creativeclouddeveloper.com/t/package-failed/7921/12 "2024-05-25T19:34:51Z")

</div>

Finally, it works after the .gitignore with “node\_modules” is added.  
Since I found typescript-webpack-sample has the .gitignore.  
😂 😂 😂

---

<div class="post-metadata">

**Author:** ![rong](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@rong](https://forums.creativeclouddeveloper.com/u/rong)\
**Post date:** [May 25, 2024, 7:38pm UTC](https://forums.creativeclouddeveloper.com/t/package-failed/7921/13 "2024-05-25T19:38:45Z")

</div>

Yes, with .gitignore the “node\_modules”, it works now.

---

<div class="post-metadata">

**Author:** ![Jarda](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/jarda/32/1909_2.png) [@Jarda](https://forums.creativeclouddeveloper.com/u/Jarda)\
**Post date:** [May 26, 2024, 6:51pm UTC](https://forums.creativeclouddeveloper.com/t/package-failed/7921/14 "2024-05-26T18:51:31Z")

</div>

Plugin should not contain empty file. But `-1` meaning unkown error is pretty bad error message. Someone should do revision of all error messages in UPIA.
