Hi everybody,
I’m facing problems installing Ghost locally on my Mac using node. I know this problem has already been talked about in this forum, but I didn’t manage to use the solutions…
It has been several days since I have this problem and I can’t find solutions on my own. I already looked in the forum and on the internet, the solutions I found didn’t work.
I followed every steps mentionned here : How to install Ghost locally on Mac, PC or Linux
This morning I installed yarn using Homebrew but I keep getting the same error messages when I try to install Ghost.
Here it is :
MacBook-Air-de-Clement:ghost Clement$ ghost install local
Checking system Node.js version - found v14.17.0
Checking current folder permissions
Checking memory availability
Checking free space
Checking for latest Ghost version
Setting up install directory
Downloading and installing Ghost v4.4.0
A ProcessError occurred.
Message: Command failed: yarn install --no-emoji --no-progress
Error: EACCES: permission denied, open ‘/Users/Clement/.config/yarn’
at Object.openSync (fs.js:498:3)
at readFileSync (fs.js:394:35)
at /usr/local/lib/node_modules/ghost-cli/node_modules/yarn/lib/cli.js:100892:58
at Array.map ()
at parseRcPaths (/usr/local/lib/node_modules/ghost-cli/node_modules/yarn/lib/cli.js:100890:78)
at Object.findRc (/usr/local/lib/node_modules/ghost-cli/node_modules/yarn/lib/cli.js:100904:10)
at getRcConfigForCwd (/usr/local/lib/node_modules/ghost-cli/node_modules/yarn/lib/cli.js:56916:74)
at /usr/local/lib/node_modules/ghost-cli/node_modules/yarn/lib/cli.js:92255:56
at Generator.next ()
at step (/usr/local/lib/node_modules/ghost-cli/node_modules/yarn/lib/cli.js:310:30)
Exit code: 1
Debug Information:
OS: Mac OS X, v10.15.4
Node Version: v14.17.0
Ghost-CLI Version: 1.17.2
Environment: development
Command: ‘ghost install local’
When I run ghost doctor, this is what I get : Working directory is not a recognisable Ghost installation.
The additional log info states this :
Debug Information:
OS: Mac OS X, v10.15.4
Node Version: v14.17.0
Ghost-CLI Version: 1.17.2
Environment: development
Command: ‘ghost install local’
Message: Command failed: yarn install --no-emoji --no-progress
Error: EACCES: permission denied, open ‘/Users/Clement/.config/yarn’
at Object.openSync (fs.js:498:3)
at readFileSync (fs.js:394:35)
at /usr/local/lib/node_modules/ghost-cli/node_modules/yarn/lib/cli.js:100892:58
at Array.map ()
at parseRcPaths (/usr/local/lib/node_modules/ghost-cli/node_modules/yarn/lib/cli.js:100890:78)
at Object.findRc (/usr/local/lib/node_modules/ghost-cli/node_modules/yarn/lib/cli.js:100904:10)
at getRcConfigForCwd (/usr/local/lib/node_modules/ghost-cli/node_modules/yarn/lib/cli.js:56916:74)
at /usr/local/lib/node_modules/ghost-cli/node_modules/yarn/lib/cli.js:92255:56
at Generator.next ()
at step (/usr/local/lib/node_modules/ghost-cli/node_modules/yarn/lib/cli.js:310:30)
Exit code: 1
--------------- stderr ---------------
Error: EACCES: permission denied, open ‘/Users/Clement/.config/yarn’
at Object.openSync (fs.js:498:3)
at readFileSync (fs.js:394:35)
at /usr/local/lib/node_modules/ghost-cli/node_modules/yarn/lib/cli.js:100892:58
at Array.map ()
at parseRcPaths (/usr/local/lib/node_modules/ghost-cli/node_modules/yarn/lib/cli.js:100890:78)
at Object.findRc (/usr/local/lib/node_modules/ghost-cli/node_modules/yarn/lib/cli.js:100904:10)
at getRcConfigForCwd (/usr/local/lib/node_modules/ghost-cli/node_modules/yarn/lib/cli.js:56916:74)
at /usr/local/lib/node_modules/ghost-cli/node_modules/yarn/lib/cli.js:92255:56
at Generator.next ()
at step (/usr/local/lib/node_modules/ghost-cli/node_modules/yarn/lib/cli.js:310:30)
I really don’t know what to do. Any help would be greatly appreciated.
Thanks a lot !