Skip to content
Myr

[Dev Deps] update `markdown-link-check`

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jordan Harband · committed by Jordan Harband · parent f0f8ed1 · Browse files · 2 files+58 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+58 added−1 removed

  • other:+58 added−1 removed

2 files+58 added−1 removed

modified:package.json+1 added-1 removed
modified:README.md+57 added
17 unmodified lines
18- [Installing and Updating](#installing-and-updating)19 - [Install & Update Script](#install--update-script)20 - [Additional Notes](#additional-notes)21 - [Installing in Docker](#installing-in-docker)22 - [Installing in Docker for CICD-Jobs](#installing-in-docker-for-cicd-jobs)23 - [Troubleshooting on Linux](#troubleshooting-on-linux)24 - [Troubleshooting on macOS](#troubleshooting-on-macos)25 - [Ansible](#ansible)26 - [Verify Installation](#verify-installation)
127 unmodified lines
154RUN echo node > .nvmrc155RUN nvm install156```157158##### Installing in Docker for CICD-Jobs159160More robust, works in CI/CD-Jobs. Can be run in interactive and non-interactive containers.161See https://github.com/nvm-sh/nvm/issues/3531.162163```Dockerfile164FROM ubuntu:latest165ARG NODE_VERSION=20166167# install curl168RUN apt update && apt install curl -y169170# install nvm171RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash172173# set env174ENV NVM_DIR=/root/.nvm175176# install node177RUN bash -c "source $NVM_DIR/nvm.sh && nvm install $NODE_VERSION"178179# set ENTRYPOINT for reloading nvm-environment180ENTRYPOINT ["bash", "-c", "source $NVM_DIR/nvm.sh && exec \"$@\"", "--"]181182# set cmd to bash183CMD ["/bin/bash"]184185```186187This example defaults to installation of nodejs version 20.x.y. Optionally you can easily override the version with docker build args like:188```189docker build -t nvmimage --build-arg NODE_VERSION=19 .190```191192After creation of the image you can start container interactively and run commands, for example:193```194docker run --rm -it nvmimage195196root@0a6b5a237c14:/# nvm -v1970.40.1198199root@0a6b5a237c14:/# node -v200v19.9.0201202root@0a6b5a237c14:/# npm -v2039.6.3204```205206Noninteractive example:207```208user@host:/tmp/test $ docker run --rm -it nvmimage node -v209v19.9.0210user@host:/tmp/test $ docker run --rm -it nvmimage npm -v2119.6.3212```213214#### Troubleshooting on Linux215216On Linux, after running the install script, if you get `nvm: command not found` or see no feedback from your terminal after you type `command -v nvm`, simply close your current terminal, open a new terminal, and try verifying again.217Alternatively, you can run the following commands for the different shells on the command line:
957 unmodified lines