Problem installing Migration tool

I’ve been attempting to install the Migration tool on a DigitalOcean Ghost marketplace server using this guide:

When I run the command:

npm install --global @tryghost/migrate

I receive a series of errors, ending with

npm ERR! gyp ERR! build error 
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:203:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:514:28)
npm ERR! gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! System Linux 5.15.0-86-generic
npm ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /root/migrate/node_modules/node-expat
npm ERR! gyp ERR! node -v v18.17.1
npm ERR! gyp ERR! node-gyp -v v9.3.1
npm ERR! gyp ERR! not ok

Any thoughts on what I can do to make this work?

Usually it’s the first error that’s most informative. Is that the first error?

What’s your end goal? You don’t need to do this on a server. You can just do it on your local machine, which might make things easier. (The error you’re seeing usually indicates some missing dependency on your system.)

Additionally, Ghost has a Substack migrator built in. Go to SettingsLabs.

After all this, I discovered the built in Migrator. Wish that was more prominent.

Thanks! Topic Close.