You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FROM ubuntu:latest
RUN apt-get -y update
RUN apt-get -y install curl
RUN apt-get -y install make
RUN curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
Run a docker container with the current directory mounted as a volume: docker run -it -v $(PWD):/tmp
In the container run, cd to the mounted directory /tmp then run make nvm-install and make nvm-no-use
On my Mac, when I have no default alias and have .nvmrc set to a non-installed version, . $NVM_DIR/nvm.sh has a zero exit code, . $NVM_DIR/nvm.sh --install attempts to install the version, and . $NVM_DIR/nvm.sh --no-use is the same as without --no-use.
I certainly see a lot of your base utilities are the GNU version, so maybe one of those is the issue. Presumably nvm_auto none, nvm_auto install, and nvm_auto use all have the same behavior?
What happens if you set -x and run each of those three commands?
Are you doing this with a Makefile that you're calling in an interactive shell within the Docker container? I think Makefile is messing with something.
make --version output:
GNU Make 4.3
Built for aarch64-unknown-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Operating system and version: Ubuntu 22.04.3 LTS in Docker
nvm debug
output:nvm ls
output:How did you install
nvm
?RUN curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
What steps did you perform?
.nvmrc
file with the contentv20.4.0
docker run -it -v $(PWD):/tmp
/tmp
then runmake nvm-install
andmake nvm-no-use
What happened?
Got
Error 3
for both command outputs:What did you expect to happen?
nvm installs the version of node in the .nvmrc file in the directory.
Is there anything in any of your profile files that modifies the
PATH
?No. Nothing in the default .bashrc or .profile files in ubuntu:latest has anything that modifies the path.
The text was updated successfully, but these errors were encountered: