diff --git a/content/docs/buildpack-author-guide/create-buildpack/build-app.md b/content/docs/buildpack-author-guide/create-buildpack/build-app.md index 56dafe483..5b016d5fd 100644 --- a/content/docs/buildpack-author-guide/create-buildpack/build-app.md +++ b/content/docs/buildpack-author-guide/create-buildpack/build-app.md @@ -39,7 +39,7 @@ Next, we'll download the NodeJS runtime and install it into the layer directory. ```bash echo "---> Downloading and extracting NodeJS" node_js_url=https://nodejs.org/dist/v18.18.1/node-v18.18.1-linux-x64.tar.xz -wget -q -O - "${node_js_url}" | tar -xf - -C "${node_js_layer}" +wget -q -O - "${node_js_url}" | tar -xzf - -C "${node_js_layer}" ``` This code uses the `wget` tool to download the NodeJS binaries from the given URL, and extracts it to the `node_js_layer` directory. @@ -74,7 +74,7 @@ mkdir -p "${node_js_layer}" # 3. DOWNLOAD node-js echo "---> Downloading and extracting NodeJS" node_js_url=https://nodejs.org/dist/v18.18.1/node-v18.18.1-linux-x64.tar.xz -wget -q -O - "${node_js_url}" | tar -xf - -C "${node_js_layer}" +wget -q -O - "${node_js_url}" | tar -xzf - -C "${node_js_layer}" # 4. MAKE node-js AVAILABLE DURING LAUNCH echo -e '[types]\nlaunch = true' > "${layersdir}/node-js.toml"