Skip to content

Commit cef2daf

Browse files
committed
fix: install distro provided npm
1 parent 5107d47 commit cef2daf

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/libexec/rsdk/rsdk-setup

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ install_devcontainer_cli() {
115115
if dpkg --compare-versions "$(devenv --version | cut -d ' ' -f 2)" lt 2.0.0; then
116116
echo "devenv << 2.0.0 supports nested shell, using it to install @devcontainers/cli."
117117
devenv_shell="devenv shell"
118+
else
119+
sudo apt-get install -y npm
118120
fi
119121
if ! $devenv_shell npm install @devcontainers/cli; then
120122
broken_devenv_cache

0 commit comments

Comments
 (0)