# Local Development error

**URL:** <https://community.hubspot.com/t/local-development-error/44899>\
**Category:** CMS Development\
**Created:** [October 5, 2021, 9:36pm UTC](https://community.hubspot.com/t/local-development-error/44899 "2021-10-05T21:36:33Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![swalker1](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/swalker1/32/29892_2.png) [@swalker1](https://community.hubspot.com/u/swalker1)\
**Post date:** [October 5, 2021, 9:36pm UTC](https://community.hubspot.com/t/local-development-error/44899/1 "2021-10-05T21:36:33Z")

</div>

I’m having an issue setting up my local development. When I enter a unique name to reference my account, I get the following two errors:

1. RequestError Error: self signed certificate in certificate chain
2. A TypeError has occurred. Cannot destructure property ‘accountId’ of ‘(intermediate value)’ as it is undefined.

 ![hubspot-dev-error.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/4/3/4384a1164500315d5dd78f230e0334db508a3fcc.png)

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [October 7, 2021, 12:04am UTC](https://community.hubspot.com/t/local-development-error/44899/2 "2021-10-07T00:04:30Z")

</div>

@swalker1

Are you still having this issue?

Are you adding a portal or is this the initial setup?

---

<div class="post-metadata">

**Author:** ![swalker1](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/swalker1/32/29892_2.png) [@swalker1](https://community.hubspot.com/u/swalker1)\
**Post date:** [October 7, 2021, 2:41pm UTC](https://community.hubspot.com/t/local-development-error/44899/3 "2021-10-07T14:41:40Z")

</div>

I’m still having this issue and I’m doing the initial setup described here: [https://developers.hubspot.com/docs/cms/guides/getting-started](https://developers.hubspot.com/docs/cms/guides/getting-started) . However, I think it might be related to the restriction of my company’s VPN.

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [October 7, 2021, 1:38pm UTC](https://community.hubspot.com/t/local-development-error/44899/4 "2021-10-07T13:38:21Z")

</div>

Hi @swalker1 ,

Pleas follow this setup and run command:  
Step - 1 \> npm install -g @hubspot/cms-cli  
npm install @hubspot/cms-cli  
Step - 2 \> npx hs init  
Step - 3 \> npx @hubspot/create-cms-project project-theme  
Step - 4 \> npx hs upload project-theme/src project-theme  
Step - 5 \> hs watch src project-theme

Hope this helps!

If we were able to answer your query, kindly help the community by marking it as a solution.  
Thanks and Regards.

---

<div class="post-metadata">

**Author:** ![swalker1](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/swalker1/32/29892_2.png) [@swalker1](https://community.hubspot.com/u/swalker1)\
**Post date:** [October 11, 2021, 3:20pm UTC](https://community.hubspot.com/t/local-development-error/44899/5 "2021-10-11T15:20:49Z")

</div>

Thanks for your response Diamond. However, I ran into the same error. Step 2 didn’t work as I already had an existing config file, so I ran “hs auth” command. After entering in my CMS access keys I recieved the following error:

[ERROR] A RequestError has occurred. Error: self signed certificate in certificate chain

\*My hubspot.confg.yml file is still empty

I’m not sure where to go from here. I’m beyond frustrated.

~ Shannon

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [October 12, 2021, 6:34pm UTC](https://community.hubspot.com/t/local-development-error/44899/6 "2021-10-12T18:34:00Z")

</div>

@swalker1 ,

Sorry you are still struggling with this. You can manually create that yml file. [See here](https://developers.hubspot.com/docs/cms/developer-reference/local-development-cli#authentication) for what it should look like.

---

<div class="post-metadata">

**Author:** ![swalker1](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/swalker1/32/29892_2.png) [@swalker1](https://community.hubspot.com/u/swalker1)\
**Post date:** [October 12, 2021, 8:16pm UTC](https://community.hubspot.com/t/local-development-error/44899/7 "2021-10-12T20:16:03Z")

</div>

Dennise,

Thanks for the suggestion. I have pasted the yml file sample to my project and have updated the DEV portal adding my portalId and API key. In the PROD portal I added the personal access key. I’m not sure what to do from there since I cannot generate an acessToken. When I run “hs auth” I still get the **[ERROR] A RequestError has occurred. Error: self signed certificate in certificate chain**. However, I was able to download the boilerplate theme to my VS Code editor project directory, but when I try to upload it I try to upload it I recieve several of the same self signed certified errors.

I am leaning this being a security issue with my VPN. I’ve never had such a difficult time setting up a local development environment.

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [October 13, 2021, 2:29pm UTC](https://community.hubspot.com/t/local-development-error/44899/8 "2021-10-13T14:29:03Z")

</div>

Try without the access token

Example (obviously change name to reflect your workspace and not mine 😀)

```lia-code-sample
defaultPortal: DennisMain
portals:
 - name: DennisMain
 portalId: Your portal ID
 authType: apikey
 apiKey: super secret hapikey. paste in yours here

```

use only this in the yaml file and see if that helps.

Other than that, I believe you may be correct about the vpn. Hopefully, you can work with IT on that.

---

<div class="post-metadata">

**Author:** ![Paulovsky](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/paulovsky/32/2401_2.png) [@Paulovsky](https://community.hubspot.com/u/Paulovsky)\
**Post date:** [March 14, 2025, 4:33pm UTC](https://community.hubspot.com/t/local-development-error/44899/9 "2025-03-14T16:33:16Z")

</div>

Confirmed, I was having the same issue and then it got resolved after I turned off PiHole in my network.
