From 9366ef7ed18ed63a360d343338bda4ce41e62d09 Mon Sep 17 00:00:00 2001 From: Samruddhi Khandale Date: Fri, 28 Oct 2022 16:50:48 -0700 Subject: Node: Fix failure when `version:none` (#247) fix version:none --- src/node/devcontainer-feature.json | 2 +- src/node/install.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/node/devcontainer-feature.json b/src/node/devcontainer-feature.json index cdc2fec..538ecb2 100644 --- a/src/node/devcontainer-feature.json +++ b/src/node/devcontainer-feature.json @@ -1,6 +1,6 @@ { "id": "node", - "version": "1.1.0", + "version": "1.1.1", "name": "Node.js (via nvm) and yarn", "documentationURL": "https://github.com/devcontainers/features/tree/main/src/node", "description": "Installs Node.js, nvm, yarn, and needed dependencies.", diff --git a/src/node/install.sh b/src/node/install.sh index cc5e1dc..f51306e 100755 --- a/src/node/install.sh +++ b/src/node/install.sh @@ -205,6 +205,7 @@ rm -rf /var/lib/apt/lists/* # Ensure privs are correct for installed node versions. Unfortunately the # way nvm installs node versions pulls privs from the tar which does not # have group write set. We need this when the gid/uid is updated. +mkdir -p "${NVM_DIR}/versions" chmod -R g+rw "${NVM_DIR}/versions" echo "Done!" -- cgit v1.2.3