# zsh: command not found: hs //Install HS local

**URL:** <https://community.hubspot.com/t/zsh-command-not-found-hs-install-hs-local/34461>\
**Category:** APIs & Integrations\
**Tags:** workflows, developer-tools\
**Created:** [March 24, 2021, 3:57pm UTC](https://community.hubspot.com/t/zsh-command-not-found-hs-install-hs-local/34461 "2021-03-24T15:57:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GMarsch](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gmarsch/32/43872_2.png) [@GMarsch](https://community.hubspot.com/u/GMarsch)\
**Post date:** [March 24, 2021, 3:57pm UTC](https://community.hubspot.com/t/zsh-command-not-found-hs-install-hs-local/34461/1 "2021-03-24T15:57:50Z")

</div>

hello community  
my challenge…

I am trying to install Hubspot in my local environment with the command ( **npm install -g @hubspot/cli** ).

 ![39876i9CB7D73978C7390D.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/b/1/b12ededdf547d6c7a96797c9878a0e4cf1e15358.png)  
command  
Everything runs in the console, but it doesn’t work.  
 ![39877i05918A26891AD330.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/5/e/5ef406c525d2c54d5be74cd7db953e52af7440f8.png)  
structure

If I do these steps before, it works temporarily until I close the console and close the task. (**[Resolving EACCES permissions errors when installing packages globally | npm Docs](https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally)**)

Fact: I m the wheel (Admin).. no crypt on my device

---

<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:** [March 25, 2021, 2:20pm UTC](https://community.hubspot.com/t/zsh-command-not-found-hs-install-hs-local/34461/2 "2021-03-25T14:20:48Z")

</div>

Hello @GMarsch ,

Did you get this figured out? Did you try using the Sudo command

@stefen , any thoughts?

---

<div class="post-metadata">

**Author:** ![stefen](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stefen/32/29274_2.png) [@stefen](https://community.hubspot.com/u/stefen)\
**Post date:** [March 25, 2021, 2:27pm UTC](https://community.hubspot.com/t/zsh-command-not-found-hs-install-hs-local/34461/3 "2021-03-25T14:27:58Z")

</div>

@dennisedson @GMarsch if you installed Node.js via Brew.sh then you may want to make sure your global npm directory is in the right place and in your PATH. You could try following this article and see if that helps: [Instructions on how to fix npm if you've installed Node through Homebrew on Mac OS X or Linuxbrew · GitHub](https://gist.github.com/DanHerbert/9520689)

---

<div class="post-metadata">

**Author:** ![SMishra5](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/smishra5/32/6831_2.png) [@SMishra5](https://community.hubspot.com/u/SMishra5)\
**Post date:** [June 14, 2023, 8:58am UTC](https://community.hubspot.com/t/zsh-command-not-found-hs-install-hs-local/34461/4 "2023-06-14T08:58:09Z")

</div>

Hello @GMarsch ,  
Use the sudo command when you’re installing. it will solve this issue.
