This article shows you how to install the npm package required when installing code-server onto a machine with architecture for which we don't offer a designated release. The npm package builds the native modules used by VS Code.
Before proceeding, please make sure that you have Node.js version 12.x (or later) installed.
To install the npm package on a machine running Debian or Ubuntu:
sudo apt-get install -y \
build-essential \
pkg-config \
libx11-dev \
libxkbfile-dev \
libsecret-1-dev \
python3
npm config set python python3To install the npm package on a machine running CentOS, Fedora, or RHEL:
sudo yum groupinstall -y 'Development Tools'
sudo yum config-manager --set-enabled PowerTools # unnecessary on CentOS 7
sudo yum install -y python2 libsecret-devel libX11-devel libxkbfile-devel
npm config set python python2