我跟着https://github.com/ParsePlatform/parse-server在MacOS上安装Parse服务器:
$ npm install -g parse-server mongodb-runner
$ mongodb-runner start
$ parse-server --appId APPLICATION_ID --masterKey MASTER_KEY --databaseURI mongodb://localhost/test
然而,当我执行" mongodb-runner start"时,我得到了这个错误堆栈跟踪:
Starting a MongoDB deployment to test against...ERR! Error retrieving Error: socket hang up
ERR! Error retrieving at createHangUpError (_http_client.js:250:15)
ERR! Error retrieving at Socket.socketOnEnd (_http_client.js:342:23)
ERR! Error retrieving at emitNone (events.js:85:20)
ERR! Error retrieving at Socket.emit (events.js:179:7)
ERR! Error retrieving at endReadableNT (_stream_readable.js:913:12)
ERR! Error retrieving at _combinedTickCallback (internal/process/next_tick.js:74:11)
ERR! Error retrieving at process._tickCallback (internal/process/next_tick.js:98:9)
ERR! Error retrieving http://dl.mongodb.org/dl/src/ : { [Error: socket hang up] code: 'ECONNRESET' }
ERR! Error: socket hang up undefined undefined
{ [Error: socket hang up] code: 'ECONNRESET' }
有什么建议吗?
谢谢
答案 0 :(得分:0)
尝试清除MongoDB下载缓存。在Windows上,它位于C:\Users\USERNAME\.mongodb\versions\downloads
。然后再次重新运行命令。