-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'node' is not recognized as an internal or external command #18
Comments
Ok, where to start... First up as you might have read in the readme: the node executable located in |
You could start by writing install instructions that work? I've tried and tried with many other ways and it's not working. |
The above may be the cause of some of the other issues you filed. I confirm that installation doesn't work as expected, though |
npm's update broke things apparently... |
okay, post here if you get it fixed. I closed the other issues. |
Btw I was looking at npm.cmd and nodist.cmd, you are calling node.exe with relative paths: "..\node.exe", I was wondering if it would be more fail-safe to actually modify the PATH environment variable so that "..\node.exe" is not called with relative path, but by overwriting PATH variable and then using it like global command. Just an idea. |
Found a fix -- bit more complex than i thought, but it works and is safe. |
thanks for reporting ;) |
btw, now you put the node.exe to bin directory, and it now becomes part of path by install instructions? Is this intended? What I suggested was to add a |
Yea, but the path would stay that way, even if nodist.cmd has exited... dangerous, isn't it? Apart from that, I always accept pull requests, so feel free to issue one ;) |
But now I have node.exe in path always even before I've installed any with "nodist stable" (since nodist/bin/ is in the PATH), is that intended? |
Yes. |
Okay. Btw, by modifying PATH only during runtime I mean: returning it to normal state after the npm command has ran. I though still don't get it why there are now two node.exes. |
You don'T get why there are two exes in the repo or why there always have to be two exes in |
Here is the curx of the problem having node.exe in
shouldn't it change the version? |
Right. That's the only occasion where nodist doesn't/cannot change the node version: You won't see it change, if you're inside nodist's own directory. That's the way it is. I assume, though, that you are usually not in there... |
|
Oh snap! Now I get it, the "nodist 0.8.1" copies the v/0.8.1/node.exe to the bin/node.exe. Okay, thanks! |
still, if the problem is: npm uses node.exe, then it may end up using wrong version? Since it now starts with ..\node.exe which is latest, and if it calls during install bin\node.exe which is different. That also intended? |
Not really, but the latest is |
I get error:
Your installation instructions are missing a one important ingredient: Add ...path...\nodist\ to your path also, the bin is not enough since node.exe is in the root directory.
Now I tried to install it also by adding only
bin/
to path, then going to root directory and running. It works, but node.exe is not added to the path. And also I couldn't get thenodist stable
... commands to work.The text was updated successfully, but these errors were encountered: