Closed nullivex closed 8 years ago
Okay,
So I tried this on a different computer.
C:\Users\JT4>nodist latest
nodev4.1.2
C:\Users\JT4>node -v
v4.1.2
C:\Users\JT4>
So Maybe it was a problem resolved upstream. If no one else sees this issue go ahead and close this.
Okay I got this error again.
C:\Windows\System32>
C:\Windows\System32>nodist latest
nodev4.1.2
C:\Windows\System32>node -v
Sorry, there's a problem with nodist.
Error: fork/exec C:\nodist/v/nodev4.1.2/node.exe: %1 is not a valid Win32 application.
C:\Windows\System32>nodist latest
nodev4.1.2
C:\Windows\System32>node -v
v4.1.2
C:\Windows\System32>
I was able to resolve it by going to C:\nodist\v
and deleting the 4.1.2
folder. After running nodist latest
again I got the proper version.
The first version contained a node.exe
that was only 100KB after the second try it was the usual ~10MB.
My only guess is that there is a problem with the upstream causing an incomplete download.
Strange :/
Maybe nodist should check, if the executable is actually executable.
(You can also use nodist - 4.1.2
to remove a version.)
How about we just check the SHA256 SUM with the upstream?
http://nodejs.org/dist/v4.1.2/SHASUMS256.txt
I can possibly put together a pull request for this.
@marcelklehr I submitted a pull request against this originally in #94 however that has been closed.
Please see PR #97 for the fix that is needed here.
Thanks again for implementing this! Happily closing this :)
Another quick solution: go to the directory where Nodist is installed (e.g: C:\Program Files (x86)\Nodist), you'll find 'v-x64' and 'v', check both and see which one has all the installed versions and remove the other one.
I removed the 'v' folder which in my case was causing the conflict as I'm on a x64 OS.
Hi,
I just ran the following and am seeing some strangeness.
Any idea what can be done here?
Just to investigate I went here: https://nodejs.org/dist/v4.1.2/win-x64/ and downloaded the
node.exe
file and then placed it inC:\nodist\bin\node.exe
and renamed the existing tonode-old.exe
and then I get.So is it possible nodist is downloading the wrong file?