#Is there a way to install node.js with java, having the installer or zip file already downloaded?

55 messages · Page 1 of 1 (latest)

finite blade
#

Just what the titles says, if its possible, and maybe a clue for how to.

dry nacelleBOT
#

This post has been reserved for your question.

Hey @finite blade! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

lunar shadow
#

well, you can just unzip the file with the ZipFile API?

finite blade
#

like i already unzipped it and it works for that

#

but if i open my cmd and run node, it doesnt work

#

idk how to set the environment variable or smth

lunar shadow
finite blade
lunar shadow
#

on Windows, you could use the setx command

#

you can execute that with Runtime.getRuntime().exec(...) but first try from your command line

#

oh and it might require admin permissions

finite blade
lunar shadow
#

and for linux, maybe create a script in /usr/bin or whatever

finite blade
#

can you show me an example command to set the node path?

lunar shadow
finite blade
#

oh okk

#

that is great news

#

you know the name of the node environment variable pheraps?

#

if not i'll figure it out

lunar shadow
#

"setx PATH="+nodePath+"\\bin;"+remainingPath something like that I guess

finite blade
#

my thanks!

dry nacelleBOT
# finite blade my thanks!

If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.

finite blade
#

so "nodepath" should be my path right?

lunar shadow
#

If you want to set it for all users, you might need to add /m and run Java as an administrator

lunar shadow
#

I assume the executable are in a subfolder called bin

finite blade
#

mmh

lunar shadow
#

and remainingPath should be the remainder of the PATH

finite blade
#

doesnt seem

lunar shadow
#

I guess

finite blade
#

there is no bin or else

lunar shadow
#

then you don't need the \\bin

#

but don't forget the ; I guess

#

and for Linux, maybe create a link somewhere

#

you could do that with the ln command I guess

finite blade
#

thx i'll try all out and tell you if i still need some help alr?

lunar shadow
#

good luck

finite blade
#

setx PATH= C:/Users/me/node/

#

im getting an error with this

#

it just says syntax error

#

ah wait i didnt have to use the = sry

finite blade
#

so

#

i tried with this

#

setx PATH C:/Users/me/node/

#

it says it works

#

but when i run node in cmd still doesnt work

#

any idea @lunar shadow?

lunar shadow
#

where is the nide.exe file?

#

node.exe*

finite blade
dry nacelleBOT
#

💤 Post marked as dormant

This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.

lunar shadow
#

did you restart cmd after running the setx command?