# Error installing Ghost locally

**URL:** <https://forum.ghost.org/t/error-installing-ghost-locally/8234>\
**Category:** Installation\
**Created:** [July 12, 2019, 8:30am UTC](https://forum.ghost.org/t/error-installing-ghost-locally/8234 "2019-07-12T08:30:49Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt-B](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/matt-b/32/7929_2.png) [@Matt-B](https://forum.ghost.org/u/Matt-B)\
**Post date:** [July 12, 2019, 8:30am UTC](https://forum.ghost.org/t/error-installing-ghost-locally/8234/1 "2019-07-12T08:30:49Z")

</div>

Hi all,

I have a real problem to install locally, I’ve tried all the solutions that that there is on the forum, I found online, and I know this error appears sometimes.

OS : Mac OS Mojave (last version)  
npm installed version : 6.9.0  
node installed version : v10.16.0  
yarn installed version : 1.16.0  
homebrew is installed too

When I arrive to this command: ghost install local, it shows this:

ghost install local  
✔ Checking system Node.js version  
✔ Checking current folder permissions  
✔ Checking memory availability  
✔ Checking for latest Ghost version  
✔ Setting up install directory  
**✖ Downloading and installing Ghost v2.25.6**  
**A ProcessError occurred.**

Message: Command failed: yarn install --no-emoji --no-progress  
error An unexpected error occurred: “EACCES: permission denied, scandir ‘/Users/matt/.config/yarn/link’”.

yarn install v1.16.0  
info If you think this is a bug, please open a bug report with the information provided in “/Users/matt/Documents/ghost/versions/2.25.6/yarn-error.log”.  
info Visit [yarn install | Yarn](https://yarnpkg.com/en/docs/cli/install) for documentation about this command.

Exit code: 1

Debug Information:  
OS: Mac OS X, v10.14.5  
Node Version: v10.16.0  
Ghost-CLI Version: 1.11.0  
Environment: development  
Command: ‘ghost install local’

Additional log info available in: /Users/matt/.ghost/logs/ghost-cli-debug-2019-07-12T08\_19\_48\_146Z.log

Try running ghost doctor to check your system for known issues.

You can always refer to [Ghost-CLI - A fully loaded tool for installation and configuration](https://docs.ghost.org/api/ghost-cli/) for troubleshooting.

I’ve tried with the sudo command too, but still don’t run…  
I had a funcional ghost local version (old version), but I did a clean re-install of my Mac recently

Any one had an idea? If so, it would be so useful, thanks a lot in advance, I have to work on a project, and I spend time just to try to fix this!

Thanks again!!

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [July 15, 2019, 4:55pm UTC](https://forum.ghost.org/t/error-installing-ghost-locally/8234/2 "2019-07-15T16:55:19Z")

</div>

It looks like the installer is running into a permissions error when trying to access `/Users/matt/.config/yarn/link`

---

<div class="post-metadata">

**Author:** ![Matt-B](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/matt-b/32/7929_2.png) [@Matt-B](https://forum.ghost.org/u/Matt-B)\
**Post date:** [July 15, 2019, 5:03pm UTC](https://forum.ghost.org/t/error-installing-ghost-locally/8234/3 "2019-07-15T17:03:02Z")

</div>

Yes, but how to fix this?

Before that, I had installed the older local version of ghost, and it works perfectly, with no problem with permissions,

Now I try to install the new version and that’s on my admin session, I have all the permissions

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [July 15, 2019, 8:24pm UTC](https://forum.ghost.org/t/error-installing-ghost-locally/8234/4 "2019-07-15T20:24:26Z")

</div>

> [@Matt-B](#):
>
> /Users/matt/Documents/ghost/versions/2.25.6/yarn-error.log

Could you share the output of `/Users/matt/Documents/ghost/versions/2.25.6/yarn-error.log`

---

<div class="post-metadata">

**Author:** ![lmuzquiz](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/lmuzquiz/32/598_2.png) [@lmuzquiz](https://forum.ghost.org/u/lmuzquiz)\
**Post date:** [July 15, 2019, 9:59pm UTC](https://forum.ghost.org/t/error-installing-ghost-locally/8234/5 "2019-07-15T21:59:30Z")

</div>

how about sudo ghost install local?

---

<div class="post-metadata">

**Author:** ![Matt-B](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/matt-b/32/7929_2.png) [@Matt-B](https://forum.ghost.org/u/Matt-B)\
**Post date:** [July 15, 2019, 10:33pm UTC](https://forum.ghost.org/t/error-installing-ghost-locally/8234/6 "2019-07-15T22:33:04Z")

</div>

@lmuzquiz : yes I’ve tried it too with sudo but it don’t works.

@vikaspotluri123 : there is nothing in the file, it’s empty, but, something really strange, I can’t go to here : /Users/matt/.config/yarn/link. because, yes this file is denied (see file attached), but I’m the administrator with all access…

![04](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/8/875c22fead1e51c0419f190b7cb2e734c9124b2f.png)

---

<div class="post-metadata">

**Author:** ![lmuzquiz](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/lmuzquiz/32/598_2.png) [@lmuzquiz](https://forum.ghost.org/u/lmuzquiz)\
**Post date:** [July 15, 2019, 11:28pm UTC](https://forum.ghost.org/t/error-installing-ghost-locally/8234/7 "2019-07-15T23:28:52Z")

</div>

> [@Matt-B](#):
>
> config/yarn/link.

Sounds like a yarn issue

---

<div class="post-metadata">

**Author:** ![lmuzquiz](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/lmuzquiz/32/598_2.png) [@lmuzquiz](https://forum.ghost.org/u/lmuzquiz)\
**Post date:** [July 15, 2019, 11:29pm UTC](https://forum.ghost.org/t/error-installing-ghost-locally/8234/8 "2019-07-15T23:29:55Z")

</div>

Try this: [macos - yarn permission problems on OSX high sierra - Stack Overflow](https://stackoverflow.com/questions/48820471/yarn-permission-problems-on-osx-high-sierra)

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [July 16, 2019, 12:06pm UTC](https://forum.ghost.org/t/error-installing-ghost-locally/8234/9 "2019-07-16T12:06:56Z")

</div>

That’s probably where your issue is… can you run `ls -al /Users/matt/.config` so we can see what the folder permissions are? Fair warning, I have no clue how the OSX security model differs from Linux

---

<div class="post-metadata">

**Author:** ![Matt-B](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/matt-b/32/7929_2.png) [@Matt-B](https://forum.ghost.org/u/Matt-B)\
**Post date:** [July 25, 2019, 6:50pm UTC](https://forum.ghost.org/t/error-installing-ghost-locally/8234/10 "2019-07-25T18:50:12Z")

</div>

> [@vikaspotluri123](#):
>
> ls -al /Users/matt/.config

Hi, sorry for my late answer, trying this command it returned this :

ls: .config: Permission denied

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [July 26, 2019, 2:08am UTC](https://forum.ghost.org/t/error-installing-ghost-locally/8234/11 "2019-07-26T02:08:41Z")

</div>

Interesting… can you run `ls -al /Users/matt | grep .config`

---

<div class="post-metadata">

**Author:** ![Matt-B](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/matt-b/32/7929_2.png) [@Matt-B](https://forum.ghost.org/u/Matt-B)\
**Post date:** [July 27, 2019, 8:05am UTC](https://forum.ghost.org/t/error-installing-ghost-locally/8234/12 "2019-07-27T08:05:54Z")

</div>

> [@vikaspotluri123](#):
>
> ls -al /Users/matt | grep .config

It returned this

drwx------ 3 root staff 96 11 jul 23:49 .config
