Node.js 在MacOS上安装Ghost:';重影安装本地';生产';响应代码401(未经授权)和#x27;安装过程的中途

Node.js 在MacOS上安装Ghost:';重影安装本地';生产';响应代码401(未经授权)和#x27;安装过程的中途,node.js,ghost-blog,got,Node.js,Ghost Blog,Got,编辑:我将节点版本更改为10.x,这是ghost向我推荐的。我得到以下(类似)错误。它似乎在get中失败了 Debug Information: OS: Mac OS X, v10.14.5 Node Version: v10.19.0 Ghost-CLI Version: 1.13.1 Environment: development Command: 'ghost install local' An error occurred. Message: '

编辑:我将节点版本更改为10.x,这是ghost向我推荐的。我得到以下(类似)错误。它似乎在
get
中失败了

Debug Information:
    OS: Mac OS X, v10.14.5
    Node Version: v10.19.0
    Ghost-CLI Version: 1.13.1
    Environment: development
    Command: 'ghost install local'
An error occurred.
Message: 'Response code 401 (Unauthorized)'

Stack: HTTPError: Response code 401 (Unauthorized)
    at EventEmitter.ee.on.res (/usr/local/share/.config/yarn/global/node_modules/download/node_modules/got/index.js:482:24)
    at EventEmitter.emit (events.js:198:13)
    at getResponse (/usr/local/share/.config/yarn/global/node_modules/download/node_modules/got/index.js:320:5)
    at Immediate.setImmediate (/usr/local/share/.config/yarn/global/node_modules/download/node_modules/got/index.js:147:6)
    at runCallback (timers.js:705:18)
    at tryOnImmediate (timers.js:676:5)
    at processImmediate (timers.js:658:5)
Path: /axags/api/npm/virtual-bcn-node/ghost/-/ghost-3.5.0.tgz

我正在尝试在本地安装Ghost以评估项目。我跟着火车,但当我跑的时候

ghost install local
在空文件夹中,我遇到以下错误:

消息:“响应代码401(未经授权)”

我尝试了
sudo ghost install local
,但结果相同。我还更改了文件夹权限,允许每个人读取/写入该文件夹。同样的结果


非常感谢任何帮助

这是我们这边的一个连接问题,
.npmrc
设置干扰了该过程。

IMO是一个很好的问题,不确定它为什么会被删除。是否要取消删除它?如果它以后变得更流行,我一点也不会感到惊讶,这是一种非常好的模式,比我们的其他选择要好currently@CertainPerformance--可能是因为可选链接将与对象一起使用。我把它和数组一起使用。我删除了它,因为我认为我错过了显而易见的。虽然我假设数组是一个对象,但我不确定它为什么会得到下票数。@CertainPerformance,undeleted,如果下票数出现,我想我会接受下票数。。。。