Skip to content

corepack enable - command not found: nodejs 16 moved to 18.7 on apt update first time #1032

Closed as not planned
@DaveT-T

Description

@DaveT-T

Fresh install Ubuntu 22.04-- following mastodon install from source instructions
Specifically requested nodejs v 16 (failed several prev wipe|clean installs trying to use v19)
curl -sL https://deb.nodesource.com/setup_16.x | bash -

during subsequent steps
apt update
upgraded nodejs to version 18.7
ran apt install -y on the whole set including nodejs no errors all went fine all success

next step corepack enable fails
'corepack: command not found'

without yarn, mastodon will not function
without corepack, yarn may not function correctly

did deep dive searches for help. During prev attempts with nodejs v19 I installed yarn and corepack using npm but final deployment of mastodon would not generate any user pages or content (admin pages worked tho) so tried again this time with a clean wipe fresh UBUNTU with strict nodejs version 16 requested and the apt update seems to have broken something as corepack is not included in standard install of version 18.7

Help------continue by installing npm, then using npm to install corepack and yarn?
Or stop and wait until someone figues out why corepack and yarn not included in 18.7 clean install

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions