我有一台CentOS 7机器,使用mysql服务器和nginx。我用yum install nodejs和ghost-cli安装了nodejs。当我使用ghost-cli安装ghost时,我收到错误
我想安装ghost-cli的ghost。但是当我进入鬼安装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'
什么造成这个错误,我该如何解决呢?谢谢。
你有多个版本的节点安装? – leninhasda
没有。只有一个版本 – Ahmad
我刚开始在一台trusty64机器上仅仅10分钟就遇到了同样的问题。就我而言,只有当我使用Ansible playbook进行安装时才会发生这种情况。 我已经通过nvm安装了节点v6.11.2,并且可以看到使用相同的节点版本(在'.nvm/versions/node/v6.11.2/bin'内)安装了ghost以及npm和节点(所有3个都符号链接到'/usr/local/bin')并运行'哪个节点(或npm或ghost)显示正确的路径 – mohitsharma44