Update problem. error @stdlib/utils@0.0.12: The platform "netbsd" is incompatible with this module

Hello there,

Sorry if this is not related to Ghost at all, but hear me out.

I run two Ghost blogs on my VM which is running NetBSD OS. I know that NetBSD is not oficially supported by Ghost, but I tried install node on it, then ghost itself and it just worked. I happily used this setup for years updating to newest version without or minor problems. However since some time ago it seems update is broken especially with this:

✔ Fetched release notes
✖ Downloading and updating Ghost to v4.48.7
A ProcessError occurred.

Message: Command failed: yarn install --no-emoji --no-progress
warning ghost@4.48.7: The engine "cli" appears to be invalid.
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@^2.29.1"
warning Resolution field "moment-timezone@0.5.23" is incompatible with requested version "moment-timezone@^0.5.33"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@^2.29.1"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@^2.27.0"
warning Resolution field "moment-timezone@0.5.23" is incompatible with requested version "moment-timezone@^0.5.31"
warning Resolution field "moment-timezone@0.5.23" is incompatible with requested version "moment-timezone@^0.5.34"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@^2.29.3"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@2.27.0"
warning Resolution field "@tryghost/logging@2.1.8" is incompatible with requested version "@tryghost/logging@2.1.5"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@2.27.0"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@^2.29.1"
error @stdlib/utils@0.0.12: The platform "netbsd" is incompatible with this module.
error Found incompatible module.

The more oddity is this that one blog is under v5 control and second one is v4. And both have now same issues.

More to this, I updated every package on OS itself which includes nodejs and after that I can’t start ghost becasue of nodejs version change, BUT I can easly update it to exact same version with force fo recompilation as ghost suggested itself. Then running update to newest version fails.

If anyone have a clue why this happens in this way and what can be done about that it will be awesome. I think base OS is irrevelant as long as it has all necesserry programs it is repository (nodejs, yarn, npm?)

Whole log from console what I have done is below. Thanks!

v4 version

u-SYS-web02# ghost start

Love open source? We’re hiring JavaScript Engineers to work on Ghost full-time.
https://careers.ghost.org


✔ Checking system Node.js version - found v16.17.0
✔ Checking current folder permissions
✔ Validating config
✔ Checking memory availability
✖ Checking binary dependencies
One or more errors occurred.

1) Checking binary dependencies

Message: The installed node version has changed since Ghost was installed.
Help: Run ghost update 4.47.0 --force to re-install binary dependencies.

Debug Information:
    OS: unknown, vunknown
    Node Version: v16.17.0
    Ghost Version: 4.47.0
    Ghost-CLI Version: 1.23.1
    Environment: production
    Command: 'ghost start'

Try running ghost doctor to check your system for known issues.

You can always refer to https://ghost.org/docs/ghost-cli/ for troubleshooting.
u-SYS-web02#  ghost update 4.47.0 --force


Love open source? We’re hiring JavaScript Engineers to work on Ghost full-time.
https://careers.ghost.org



✔ Checking system Node.js version - found v16.17.0
✔ Checking current folder permissions
✔ Checking memory availability
✔ Checking free space
✔ Checking for available migrations
✔ Checking for latest Ghost version
✔ Release notes were not found
✔ Downloading and updating Ghost to v4.47.0
✔ Linking latest Ghost and recording versions
ℹ Removing old Ghost versions [skipped]
u-SYS-web02#
u-SYS-web02# ghost start

Love open source? We’re hiring JavaScript Engineers to work on Ghost full-time.
https://careers.ghost.org


✔ Checking system Node.js version - found v16.17.0
✔ Checking current folder permissions
✔ Validating config
✔ Checking memory availability
✔ Checking binary dependencies
✔ Starting Ghost: xxx

------------------------------------------------------------------------------

Your admin interface is located at:

    https://xxx/ghost/

u-SYS-web02# ghost update v4

Love open source? We’re hiring JavaScript Engineers to work on Ghost full-time.
https://careers.ghost.org



✔ Checking system Node.js version - found v16.17.0
✔ Checking current folder permissions
✔ Checking memory availability
✔ Checking free space
✔ Checking for available migrations
✔ Checking for latest Ghost version

# 4.48.7

This release contains fixes for minor bugs and issues reported by Ghost users.

---

View the changelog for full details:

* Ghost - https://github.com/tryghost/ghost/compare/v4.48.6...v4.48.7
* Admin - https://github.com/tryghost/admin/compare/v4.48.6...v4.48.7

🪄 Love open source? We're hiring [JavaScript Engineers](https://careers.ghost.org/) to work on Ghost full-time

✔ Fetched release notes
✖ Downloading and updating Ghost to v4.48.7
A ProcessError occurred.

Message: Command failed: yarn install --no-emoji --no-progress
warning ghost@4.48.7: The engine "cli" appears to be invalid.
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@^2.29.1"
warning Resolution field "moment-timezone@0.5.23" is incompatible with requested version "moment-timezone@^0.5.33"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@^2.29.1"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@^2.27.0"
warning Resolution field "moment-timezone@0.5.23" is incompatible with requested version "moment-timezone@^0.5.31"
warning Resolution field "moment-timezone@0.5.23" is incompatible with requested version "moment-timezone@^0.5.34"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@^2.29.3"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@2.27.0"
warning Resolution field "@tryghost/logging@2.1.8" is incompatible with requested version "@tryghost/logging@2.1.5"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@2.27.0"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@^2.29.1"
error @stdlib/utils@0.0.12: The platform "netbsd" is incompatible with this module.
error Found incompatible module.

yarn install v1.22.19
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Exit code: 1


Debug Information:
    OS: unknown, vunknown
    Node Version: v16.17.0
    Ghost Version: 4.47.0
    Ghost-CLI Version: 1.23.1
    Environment: production
    Command: 'ghost update v4'

Additional log info available in: /root/.ghost/logs/ghost-cli-debug-2022-11-07T10_20_54_511Z.log

Try running ghost doctor to check your system for known issues.

You can always refer to https://ghost.org/docs/ghost-cli/ for troubleshooting.
u-SYS-web02#

v5 version

u-SYS-web02# ghost start

Love open source? We’re hiring JavaScript Engineers to work on Ghost full-time.
https://careers.ghost.org


✔ Checking system Node.js version - found v16.17.0
✔ Checking current folder permissions
✔ Validating config
✔ Checking memory availability
✖ Checking binary dependencies
One or more errors occurred.

1) Checking binary dependencies

Message: The installed node version has changed since Ghost was installed.
Help: Run ghost update 5.13.2 --force to re-install binary dependencies.

Debug Information:
    OS: unknown, vunknown
    Node Version: v16.17.0
    Ghost Version: 5.13.2
    Ghost-CLI Version: 1.23.1
    Environment: production
    Command: 'ghost start'

Try running ghost doctor to check your system for known issues.

You can always refer to https://ghost.org/docs/ghost-cli/ for troubleshooting.
u-SYS-web02# ghost update 5.13.2 --force

Love open source? We’re hiring JavaScript Engineers to work on Ghost full-time.
https://careers.ghost.org



✔ Checking system Node.js version - found v16.17.0
✔ Checking current folder permissions
✔ Checking memory availability
✔ Checking free space
✔ Checking for available migrations
✔ Checking for latest Ghost version

# 5.13.2

* 🐛 Fixed OpenSea NFT OEmbeds (#15372) - Fabien 'egg' O'Carroll

---

View the changelog for full details: https://github.com/tryghost/ghost/compare/v5.13.1...v5.13.2

🪄 Love open source? We're hiring [Node.js Engineers](https://careers.ghost.org/product-engineer-node-js) to work on Ghost full-time

✔ Fetched release notes
✔ Downloading and updating Ghost to v5.13.2
✔ Linking latest Ghost and recording versions
ℹ Removing old Ghost versions [skipped]
u-SYS-web02# ghost start

Love open source? We’re hiring JavaScript Engineers to work on Ghost full-time.
https://careers.ghost.org


✔ Checking system Node.js version - found v16.17.0
✔ Checking current folder permissions
✔ Validating config
✔ Checking memory availability
✔ Checking binary dependencies
✔ Starting Ghost: localhost

------------------------------------------------------------------------------

Your admin interface is located at:

    https://xxx/ghost/

u-SYS-web02#
u-SYS-web02# ghost update

Love open source? We’re hiring JavaScript Engineers to work on Ghost full-time.
https://careers.ghost.org



✔ Checking system Node.js version - found v16.17.0
✔ Checking current folder permissions
✔ Checking memory availability
✔ Checking free space
✔ Checking for available migrations
✔ Checking for latest Ghost version

# 5.22.7

* 🐛 Fixed upgrading Subscriptions to new Tiers - Fabien "egg" O'Carroll

---

View the changelog for full details: https://github.com/tryghost/ghost/compare/v5.22.6...v5.22.7

🪄 Love open source? We're hiring [JavaScript Engineers](https://careers.ghost.org/) to work on Ghost full-time

✔ Fetched release notes
✖ Downloading and updating Ghost to v5.22.7
A ProcessError occurred.

Message: Command failed: yarn install --no-emoji --no-progress
warning ghost@5.22.7: The engine "cli" appears to be invalid.
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@^2.29.1"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@2.29.1"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@2.29.4"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@2.29.4"
warning Resolution field "moment-timezone@0.5.23" is incompatible with requested version "moment-timezone@0.5.34"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@2.29.1"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@2.29.3"
warning Resolution field "moment-timezone@0.5.23" is incompatible with requested version "moment-timezone@^0.5.33"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@^2.27.0"
warning Resolution field "moment-timezone@0.5.23" is incompatible with requested version "moment-timezone@^0.5.31"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@2.27.0"
warning Resolution field "@tryghost/logging@2.3.2" is incompatible with requested version "@tryghost/logging@2.2.3"
warning Resolution field "moment@2.24.0" is incompatible with requested version "moment@^2.29.1"
error @stdlib/utils@0.0.12: The platform "netbsd" is incompatible with this module.
error Found incompatible module.

yarn install v1.22.19
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Exit code: 1


Debug Information:
    OS: unknown, vunknown
    Node Version: v16.17.0
    Ghost Version: 5.13.2
    Ghost-CLI Version: 1.23.1
    Environment: production
    Command: 'ghost update'

Additional log info available in: /root/.ghost/logs/ghost-cli-debug-2022-11-07T11_03_28_175Z.log

Try running ghost doctor to check your system for known issues.

You can always refer to https://ghost.org/docs/ghost-cli/ for troubleshooting.
u-SYS-web02#


You could try yarn cache clean followed by ghost update, or revert to an earlier version that you know works.

Unfortunatelly that didn’t help.