# Installing HubSpot CLI - Vulnerabilities Error

**URL:** <https://community.hubspot.com/t/installing-hubspot-cli-vulnerabilities-error/135836>\
**Category:** CMS Development\
**Tags:** local-development\
**Created:** [July 8, 2025, 12:24pm UTC](https://community.hubspot.com/t/installing-hubspot-cli-vulnerabilities-error/135836 "2025-07-08T12:24:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dylan\_W](https://avatars.discourse-cdn.com/v4/letter/d/f05b48/32.png) [@Dylan\_W](https://community.hubspot.com/u/Dylan_W)\
**Post date:** [July 8, 2025, 12:24pm UTC](https://community.hubspot.com/t/installing-hubspot-cli-vulnerabilities-error/135836/1 "2025-07-08T12:24:30Z")

</div>

I am trying to follow through with one of the first videos on the HubSpot CMS for Developers course; but am already falling at the first hurdle in installing the HubSpot CLI.

Using Mac.

I have used the following command as per the video: **npm install**  **@hubspot/cli**

After which I have gotten errors on vulnerabilities regarding the install, I’ve checked my node version, which is showing as v20.18.0  
I have also tried to run the **npm audit fix** and **npm audit fix --force** commands, but no change and no further forward.  
For context, I am not running this folder inside of Herd, just locally from on my desktop, again as per the video instructions - is the video outdated or am I missing something?  
**Note:** I did get past this issue a couple days ago, but didn’t take note of how, completely on me, it just seems the videos are potentially skimming over instructions.

---

<div class="post-metadata">

**Author:** ![Dylan\_W](https://avatars.discourse-cdn.com/v4/letter/d/f05b48/32.png) [@Dylan\_W](https://community.hubspot.com/u/Dylan_W)\
**Post date:** [July 8, 2025, 2:45pm UTC](https://community.hubspot.com/t/installing-hubspot-cli-vulnerabilities-error/135836/2 "2025-07-08T14:45:04Z")

</div>

For anyone else having this problem:

`npm install -g @hubspot/cli@latest`

I have ran this command in the terminal instead, and checked in documentation that this is a global install rather than a local one, which apparently is better suited to most users (time will tell on that one).  
As per the CMS for developers video course, it does not create node\_modules folder, but it seems it’s not actually needed..  
It would be good if the resources were updated slightly as I’ve seen quite a few users on here struggling with the same problem, coming across dependancy errors, etc.

I’ll leave this discussion open for anyone who wants to add onto this.

---

<div class="post-metadata">

**Author:** ![Anton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anton/32/103167_2.png) [@Anton](https://community.hubspot.com/u/Anton)\
**Post date:** [July 9, 2025, 10:58am UTC](https://community.hubspot.com/t/installing-hubspot-cli-vulnerabilities-error/135836/3 "2025-07-09T10:58:30Z")

</div>

Hey [@Dylan\_W](https://community.hubspot.com/t5/user/viewprofilepage/user-id/963029),

thanks for sharing experience and solution/workaround.  
To be honest, I don’t really remember how I’ve set up my local dev up as it’s been quite a few days 😅

But here a few tips about setting up and working with the local dev:

- Install the [HubSpot VSCode extension](https://developers.hubspot.com/docs/guides/cms/setup/install-and-use-hubspot-code-extension) (works with Cursor)

- You can auth/add new portals with the extension or simply run **hs auth** in the terminal

- As of today: If you have problems with the CLI, try a version prior to 7.4. [7.4 adds a bunch new stuff](https://developers.hubspot.com/changelog/new-global-configuration)

- Don’t perform an open heart surgery if not required. Develop in a free CMS Sandbox and push the changes to prod once they’re approved.

- If you haven’t created a CMS Sandbox yet → [developers.hubspot.com](https://developers.hubspot.com/) and click the big orange button “create developer account” in the header. This will give you a so-called app-developer account. It’s completely free and you can create up to 10 test accounts in one app-dev account. Those test accounts are the CMS Sandboxes. In other words: You can have up to 10 CMS Sandboxes in one account for free. Need more? Create a second app-dev account… 😉

- Let your local be the SOT(source-of-truth) by running **hs watch local-path server-path** as often as possible. If you change something in the Design-Manager, either run **hs fetch server-path local-path** or copy/paste it from the Design-Manager to local files

- If you like to use GitHub, Gitlab or basically what ever git you like - it’s possible, but I recommend to not use the [continuous integration](https://developers.hubspot.com/docs/guides/cms/setup/github-integration) as this will slow down your development flow (there was a 20-40s delay between GitHub push and uploading it to HubSpot last time I’ve checked). I’d rather recommend to install the [VSCode GitHub extension](https://code.visualstudio.com/docs/sourcecontrol/github) or [GitHub Desktop](https://desktop.github.com/download/) and push your changes manually (I’m a bit oldschool).

- \*\*You can’t fetch elements from the @hubspot or @marketplace folder.

Hope this helps you getting started with local dev

best,

Anton

p.s.: I’ve heard that there’s a new CMS Certification on it’s way. But I don’t know when it will be released.

---

<div class="post-metadata">

**Author:** ![Dylan\_W](https://avatars.discourse-cdn.com/v4/letter/d/f05b48/32.png) [@Dylan\_W](https://community.hubspot.com/u/Dylan_W)\
**Post date:** [July 9, 2025, 11:08am UTC](https://community.hubspot.com/t/installing-hubspot-cli-vulnerabilities-error/135836/4 "2025-07-09T11:08:41Z")

</div>

Hey @Anton!  
Thank you for for replying to my post, really appreciated.

Granted a lot of that went over my head as I’m only an apprentice web / front end developer 😅, but it’ll come in handy for reference as I progress using the HubSpot CMS.

Managed to take me quite some time just getting through the CMS for Developers Certification as all the terminology is entirely new to me; but for the most part it’s starting to sink in..  
It might have been something of my own wrong doing that prevented me initially getting started until I got that workaround in place, but glad to hear there’s another (updated) course coming soon; I’ll be sure to get involved in it.

Once again, thanks for the response and take care of yourself! 😁

---

<div class="post-metadata">

**Author:** ![Anton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anton/32/103167_2.png) [@Anton](https://community.hubspot.com/u/Anton)\
**Post date:** [July 9, 2025, 11:24am UTC](https://community.hubspot.com/t/installing-hubspot-cli-vulnerabilities-error/135836/5 "2025-07-09T11:24:39Z")

</div>

Sure thing!  
Also - once you’re a bit more into HubL, you can check out the [Mastering HubL DHUG](https://www.youtube.com/live/GRXDz9nY5yM?si=COe6YEAx5fjVx51Z) and [Code with Confidence DHUG](https://www.youtube.com/watch?v=dBJZetIHRJM) from last year.

There are tons of super helpful tips and tricks from well-known CMS Devs that will help you get more out of HubL/HubSpot development.

best,

Anton
