[Bug?]: corepack enable
installation method not working on Ubuntu 22.10
#5060
-
Self-service
Describe the bugOn Ubuntu 22.10 (latest non-LTS) with node v18.7.0 yarn cannot be installed as documented with I am able to install corepack but it also requires sudo which is not documented: To reproduce
EnvironmentAfter successfully installing yarn with System:
OS: Linux 5.19 Ubuntu 22.10 22.10 (Kinetic Kudu)
CPU: (1) x64 Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz
Binaries:
Node: 18.7.0 - /tmp/xfs-433908c4/node
Yarn: 1.22.19 - /tmp/xfs-433908c4/yarn
npm: 8.18.0 - /usr/bin/npm This is a Virtual Box VM running under Pop!_OS 22.04 LTS Additional contextIs this a documentation issue, yarn issue or something specific with Ubuntu? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You have installed Node through a system package manager, which doesn’t include corepack. You need to either install corepack first ( This is just a case of the apt package not shipping everything that the typical Node.js distributions include. As for requiring sudo, it’s just a permission issue. Typically, you should have control over the global package store. |
Beta Was this translation helpful? Give feedback.
You have installed Node through a system package manager, which doesn’t include corepack. You need to either install corepack first (
npm i -g corepack
) or use a different method of installing Node, such as nvm.This is just a case of the apt package not shipping everything that the typical Node.js distributions include.
As for requiring sudo, it’s just a permission issue. Typically, you should have control over the global package store.