Question
How to set up phant.io on my droplet?
I want to run Phant.io on my droplet.
I installed node.js, I installed npm, I installed phant.
I typed “phant” via ssh. No reaction.
I stopped apache with “service apache2 stop” and typed “phant” again. Still, no reaciton.
I’m stuck, what can I do?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
Looking over the setup details listed here. There is no mention of using a command directly called
phant
. The instructions indicate that once you complete these steps you open a browser and navigate to port 8080 or connect via telnet to port 8081.@ryanpq What about this then?
“Now you can start phant:
”
You are correct, I apologize for missing that. It does look like the
-g
flag is required in the install in order for the phant command to be in your path. Did you ensure that the-g
flag was used when you did the npm install?Yes. So I reinstalled to make sure I set the flag global. When reeinstalling I found this line:
So, I tried to check my node version with the ssh command:
node -v
but this doesn’t work in any way either:I guess I’m doing something elementary wrong here?
got it to work. I had to update nodejs from PPA (whatever this means)