Open Juliest88 opened 3 years ago
This is confusing :-/ it's not clear which awk
invocation is erroring out, but also, all of them are perfectly valid and seem to be working for every other user.
Presumably nvm_ls_remote
gives you the same error - if so, what does nvm_ls_remote_index_tab node std
do?
Hi, I don't understand which command should I need to do? I didn't see it on the nvm --help and I tried also to run it this way:
nvm_ls_remote_index_tab node std
But I got:
not enough arguments
Right, these are internal commands that will help me debug, but aren’t part of the api.
try nvm_ls_remote_index_tab node std 15
?
julias@julia-lp:/$ nvm_ls_remote_index_tab node std 15
v15.0.0
v15.0.1
v15.1.0
v15.2.0
v15.2.1
v15.3.0
v15.4.0
v15.5.0
v15.5.1
v15.6.0
v15.7.0
v15.8.0
and I could also install node version, but unfortunately, after reboot my computer, I got this:
julias@julia-lp:~$ nvm_ls_remote_index_tab node std 15
awk: fatal: cannot open file `-' for reading (No such file or directory)
N/A
I'm trying to figure why it worked, and now it's not.
Hi, I think it might be related to TMPDIR.
julias@julia-lp:~$ nvm install --lts
Installing latest LTS version.
awk: fatal: cannot open file `-' for reading (No such file or directory)
Version '' (with LTS filter) not found - try `nvm ls-remote --lts` to browse available versions.
julias@julia-lp:~$ TMPDIR=/root nvm install --lts
Installing latest LTS version.
Downloading and installing node v14.15.5...
Local cache found: ${NVM_DIR}/.cache/bin/node-v14.15.5-linux-x64/node-v14.15.5-linux-x64.tar.xz
Checksums match! Using existing downloaded archive ${NVM_DIR}/.cache/bin/node-v14.15.5-linux-x64/node-v14.15.5-linux-x64.tar.xz
Now using node v14.15.5 (npm v6.14.11)
julias@julia-lp:~$ nvm list
v12.20.0
-> v14.15.5
system
default -> 12.20.0 (-> v12.20.0)
iojs -> N/A (default)
unstable -> N/A (default)
node -> stable (-> v14.15.5) (default)
stable -> 14.15 (-> v14.15.5) (default)
lts/* -> lts/fermium (-> v14.15.5)
lts/argon -> v4.9.1 (-> N/A)
lts/boron -> v6.17.1 (-> N/A)
lts/carbon -> v8.17.0 (-> N/A)
lts/dubnium -> v10.23.3 (-> N/A)
lts/erbium -> v12.20.1 (-> N/A)
lts/fermium -> v14.15.5
julias@julia-lp:~$
I assigned TMPDIR in the .bashrc file to a different path located in /mnt/c/Users/julia.s/AppData/Local/Temp (still, I don't know why it worked yesterday, and now I need to change the TMPDIR path)
I added this line in the .bashrc:
export TMPDIR="/tmp"
Then run:
soure ~/.bashrc
and now it works.
very interesting. what was TMPDIR
set to before?
I'm using WSL2 so I needed to sync it with the Windows temp folder. I had this line in my .bashrc:
export TMPDIR="/mnt/c/Users/julia.s/AppData/Local/Temp"
In fact, if I comment out this line, and run:
echo $TMPDIR
I don't get anything, and everything works.
Also when I assign TMPDIR="/tmp" in the .bashrc file, it still works.
It happens only when it points to "/mnt/c/Users/julia.s/AppData/Local/Temp" folder. (/mnt/c is mount to c drive, in the .bashrc file)
ah, gotcha. It seems like maybe awk
itself is using the TMPDIR variable.
If you try reproducing the error, and then modify nvm.sh
to call TMPDIR='' command awk
instead of just command awk
, what happens?
I added these changes on the nvm.sh (I hope that's what you need)
and still, I got the same error:
I tried also to reopen the terminal and got this error:
hmm, that's exactly what i meant, and it didn't fix it :-/
I'm glad you have a workaround, but I'm not sure how I can fix it inside nvm.
Thanks a lot for trying to help!
I'm facing same problem, anyone find a way to solve it
I just found a way to deal with this, in my case was the nameserver that was point to other source. In sudo vim /etc/resolv.conf
changed it to 8.8.8.8.
I had the same issue to install node on WSL2. But the error message just say "Version not found"
$ nvm install --lts
Installing latest LTS version.
Version '' (with LTS filter) not found - try `nvm ls-remote --lts` to browse available versions
This command do help to workaround the issue. Thanks!
$ TMPDIR=/tmp nvm install --lts
For me the problem was zscaler. After disabling the zscaler service I was able to install node with npm.
Hi @dylanwa where did you insert this config? TMPDIR=/tmp nvm install --lts
Hi, I updated WSL to WSL2 and try to install the nvm again.
Operating system and version:
Windows 10 20H2 (OS Build 19042.746) Using WSL 2 => Ubuntu-20.04
nvm debug
output:nvm ls
output:How did you install
nvm
?What steps did you perform?
What happened?
ALSO for
I get:
FOR:
I get:
What did you expect to happen?
installing the latest version of node
Is there anything in any of your profile files that modifies the
PATH
?No.
If you are having installation issues, or getting "N/A", what does
curl -I --compressed -v https://nodejs.org/dist/
print out?