当我用幽灵cli安装鬼我得到错误

我有一个与MySQL服务器和Nginx的CentOS 7机器。 我用yum install nodejs和ghost-cli安装了nodejs。

我想用鬼气来安装幽灵。 但是当我input鬼安装commant我得到这个错误:

✖ Checking system Node.js version A SystemError occurred. Message: The version of Ghost-CLI you are running was not installed with this version of Node. This means there are likely two versions of Node running on your system, please ensure that you are only running one global version of Node before continuing. Debug Information: Node Version: v6.11.1 Ghost-CLI Version: 1.1.0 Environment: production Command: 'ghost install' 

造成这个错误的是什么,我该如何解决? 谢谢。

Ghost-CLI的核心贡献者奥斯汀对这个问题做出了回应]

我问奥斯汀,为什么他select不使用本地npm版本?

他回答说:

原因是ghost创build了一个特定的幽灵用户来运行幽灵。 如果你在本地安装nvm(比如在~/.nvm ),那么创build的ghost用户将不能运行ghost,因为home文件夹不允许读权限为文件系统上的每个人。

现在要closures这个问题 – 如果更多的人有这个问题,那么我们可以重新开放,找出一个更好的解决scheme


好吧,看起来你可以通过以root用户身份运行安装来解决这个问题,但这不是我可以做的事情,所以我深入了解了最近几天推向Ghost-CLI的代码,以及我最好的猜测是这个具体的提交修复nvm – ea30015正在导致权限问题。

我已经用Ghost-CLI项目创build了一个#447的问题 ,看看他们是否也可以确认。