"url.URL is not a constructor" error updating from 2.22.0 to 2.23.0

I’ve been using Ghost on my DigitalOcean VPS for a while. The most recent update from 2.22.0 to 2.23.0 didn’t complete properly when I used ghost update in the CLI. The CLI debug log has this in it:

Debug Information:
    OS: Ubuntu, v18.04
    Node Version: v6.14.0
    Ghost-CLI Version: 1.10.0
    Environment: production
    Command: 'ghost update'
Message: url.URL is not a constructor
Suggestion: journalctl -u ghost_arrowsreach-me -n 50
Stack: Error: url.URL is not a constructor
    at Server.server.close (/home/pendy/.nvm/versions/node/v6.14.0/lib/node_mode_modules/ghost-cli/lib/utils/port-polling.js:38:28)
    at Server.g (events.js:292:16)
    at emitNone (events.js:86:13)
    at Server.emit (events.js:185:7)
    at emitCloseNT (net.js:1574:8)
    at _combinedTickCallback (internal/process/next_tick.js:77:11)
    at process._tickCallback (internal/process/next_tick.js:104:9)

Any ideas what ight be happening? Is Node 6.14.0 too new?

Node 6.x hasn’t been supported for a while, I think that’s probably where you should look first. 10.x is the current LTS version.

Aha, that definitely helps. I updated Node and ended up reinstalling Ghost entirely since it had another hiccup. All is well now. Thanks! :slight_smile:

I’m seeing this issue as well, and your docs say you support Node v6, FYI.

The docs are now up to date :wink:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.