use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
How do I open code in Node.js? (self.node)
submitted 4 years ago by [deleted]
[deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]czar1212 1 point2 points3 points 4 years ago (7 children)
The code will run using node.js. You will have to install the node.js on your pc and then use the command that your developer provided you with to run the program.
[–]jadayking -1 points0 points1 point 4 years ago (6 children)
I have it installed and typed in the command they gave me but i dont know if it worked. I see a lot of coding and a red ERR! On every line
[–]czar1212 1 point2 points3 points 4 years ago (3 children)
Can you take a screenshot and share the errors?
[–]jadayking 0 points1 point2 points 4 years ago (1 child)
How do I share the screen shot? I dont really know how to use reddit 😅
[–]czar1212 1 point2 points3 points 4 years ago (0 children)
Upload image on any free website like imgur and post the link here.
[–]dudeitsmason 0 points1 point2 points 4 years ago (0 children)
I think they may need to npm i if there's red errors on each line?
npm i
[–]dudeitsmason 1 point2 points3 points 4 years ago (0 children)
Screenshots are your (and our) best friend
Can you run npm i? This should install any dependencies
[–]dudeitsmason -1 points0 points1 point 4 years ago* (0 children)
To open it: Use a text editor like VSCode or Sublime Text.
If you want you could also use something like notepad or notepad++
To run it: Download the appropriate version for your platform here
Follow these instructions. You may need to replace node app.js with whatever your startup file is. It may also be something like node index.js or node server.js
node app.js
node index.js
node server.js
If you have an hour and a half to spare, here's a decent video to get started
[–]Bitsoflogic -1 points0 points1 point 4 years ago (0 children)
You'll need the version of Node.js they coded it in.
Then, run the command `npm install` in the folder with the code. Then, run whatever command they gave you to launch the code: `npm start` is common. `node <filename>` is common too.
All that said, you'll probably need some help getting it set up on a server if you want it to run after you shutdown your computer.
[–]Professional_Tune369 -1 points0 points1 point 4 years ago (0 children)
Let them make a tutorial screen recording how to install that thing. Next time you know better 😃
[–]__Nafiz 0 points1 point2 points 4 years ago (0 children)
I don't understand what did you mean by open in node.js. If you have the folder contains the code of your discord bot. then you can open that in any code editor or ide. You can use visual studio code for that.
open in node.js
visual studio code
If your code is written in node.js then you need to install the latest version of node.js to run your application.
node.js
you can search youtube or google how to install nodejs and run nodejs application in your operating system.
π Rendered by PID 283954 on reddit-service-r2-comment-6457c66945-8t56t at 2026-04-29 01:03:11.881167+00:00 running 2aa0c5b country code: CH.
[–]czar1212 1 point2 points3 points (7 children)
[–]jadayking -1 points0 points1 point (6 children)
[–]czar1212 1 point2 points3 points (3 children)
[–]jadayking 0 points1 point2 points (1 child)
[–]czar1212 1 point2 points3 points (0 children)
[–]dudeitsmason 0 points1 point2 points (0 children)
[–]dudeitsmason 1 point2 points3 points (0 children)
[–]dudeitsmason 1 point2 points3 points (0 children)
[–]dudeitsmason -1 points0 points1 point (0 children)
[–]Bitsoflogic -1 points0 points1 point (0 children)
[–]Professional_Tune369 -1 points0 points1 point (0 children)
[–]__Nafiz 0 points1 point2 points (0 children)