# Error publishing private component

**URL:** <https://forum.adalo.com/t/error-publishing-private-component/9081>\
**Category:** Get Help\
**Created:** [February 11, 2021, 4:26pm UTC](https://forum.adalo.com/t/error-publishing-private-component/9081 "2021-02-11T16:26:59Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ayydnn](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@ayydnn](https://forum.adalo.com/u/ayydnn)\
**Post date:** [February 11, 2021, 4:26pm UTC](https://forum.adalo.com/t/error-publishing-private-component/9081/1 "2021-02-11T16:26:59Z")

</div>

Hi,  
I’m getting an error when trying to privately publish a custom component.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/7/79dbed765cab5015f44a423d7b13dff41dc9189d.png)

Can someone please explain to me what this error means and how I can resolve it?

---

<div class="post-metadata">

**Author:** ![ayydnn](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@ayydnn](https://forum.adalo.com/u/ayydnn)\
**Post date:** [February 11, 2021, 4:29pm UTC](https://forum.adalo.com/t/error-publishing-private-component/9081/2 "2021-02-11T16:29:28Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/7/73688b710aae23174d22bfb1d40269e0b8fdab7c.png)  
here is the package.json file for more info

---

<div class="post-metadata">

**Author:** ![James\_App\_Maker](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/james_app_maker/32/37288_2.png) [@James\_App\_Maker](https://forum.adalo.com/u/James_App_Maker)\
**Post date:** [February 11, 2021, 4:32pm UTC](https://forum.adalo.com/t/error-publishing-private-component/9081/3 "2021-02-11T16:32:09Z")

</div>

Did you do the these directions as stated on [Adalo Developer’s Website](https://developers.adalo.com/docs/basics/publishing)?  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/f/f9923fd0bb6857dbc3d6dec73d6d0d8245046e40.png)

> **[Publishing | Adalo](https://developers.adalo.com/docs/basics/publishing/)**
>
> To publish your component, all you need to do is run npx adalo publish. The command will bundle your library and add it to Adalo's component registry.

---

<div class="post-metadata">

**Author:** ![ayydnn](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@ayydnn](https://forum.adalo.com/u/ayydnn)\
**Post date:** [February 11, 2021, 4:35pm UTC](https://forum.adalo.com/t/error-publishing-private-component/9081/5 "2021-02-11T16:35:07Z")

</div>

Yes, the command is being ran from the root directory of the component and the package.json file is filled in.

---

<div class="post-metadata">

**Author:** ![James\_App\_Maker](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/james_app_maker/32/37288_2.png) [@James\_App\_Maker](https://forum.adalo.com/u/James_App_Maker)\
**Post date:** [February 11, 2021, 4:36pm UTC](https://forum.adalo.com/t/error-publishing-private-component/9081/6 "2021-02-11T16:36:49Z")

</div>

If I’m not mistaken you need to email Adalo for publishing a private component. Scroll down to the bottom of the website until you see **publish a private component**.

> **[No-Code Meet Code in Adalo’s Component Marketplace](https://www.adalo.com/marketplace)**
>
> The Component Marketplace features components for your Adalo no-code app made by third party developers. React Native Developers can now create components for the marketplace or for personal use.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/0/01e4b663efebb5ca38a546dc41ba54ae0be48fca.png)

---

<div class="post-metadata">

**Author:** ![ayydnn](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@ayydnn](https://forum.adalo.com/u/ayydnn)\
**Post date:** [February 11, 2021, 4:40pm UTC](https://forum.adalo.com/t/error-publishing-private-component/9081/7 "2021-02-11T16:40:01Z")

</div>

Thanks, I will send an email. But that does not explain the error message “a subdirectory or file -p already exists”

---

<div class="post-metadata">

**Author:** ![James\_App\_Maker](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/james_app_maker/32/37288_2.png) [@James\_App\_Maker](https://forum.adalo.com/u/James_App_Maker)\
**Post date:** [February 11, 2021, 4:41pm UTC](https://forum.adalo.com/t/error-publishing-private-component/9081/8 "2021-02-11T16:41:10Z")

</div>

I pretty sure it’s saying that you already created a file with that same name and you need to change it, I’ve never developed a private component before so I’m trying to help 😄

---

<div class="post-metadata">

**Author:** ![ayydnn](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@ayydnn](https://forum.adalo.com/u/ayydnn)\
**Post date:** [February 11, 2021, 4:47pm UTC](https://forum.adalo.com/t/error-publishing-private-component/9081/9 "2021-02-11T16:47:46Z")

</div>

There is a ‘dir’ file already existing from running the command to create the component. I have not touched the file myself. Deleting the file and running the publish command again just creates another ‘dir’ file and produces the same error.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)\
**Post date:** [February 21, 2021, 4:48pm UTC](https://forum.adalo.com/t/error-publishing-private-component/9081/10 "2021-02-21T16:48:02Z")

</div>

Closed on February 21, 2021, 4:48pm UTC

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
