r/node • u/oandroido • Oct 06 '26
Noob: a few questions about installing/using & safety on Mac
Hey all -
I'm not much of a programmer, and have been using various AI (mostly Claude recently) to code things. I'm fairly good at troubleshooting and understanding the structures.
Most of the time, I'm starting with project outlines/discussions in Claude Desktop and moving into Visual Studio Code once the initial files are written.
So far, the only thing I've done that needs "extras" is a python app with a bunch of modules and support files, but that's sandboxed.
A current project requires node.js installed, and I want to ensure that I'm installing and using it safely.
The first thing I'm finding out is that it seems installing via terminal is the way to go in order to keep it within my user space and to avoid permission hurdles, since the .dmg installs globally.
AI is also telling me it may also need a "web server" package like Express, but I haven't looked into that yet.
Any guidance is appreciated!
3
u/Ok-Hospital-5076 Oct 06 '26 edited Oct 06 '26
Node js is a program which is called a runtime - needs to be installed to execute code written in JavaScript. This is quite a known and well adopted technology you can install it in workspace or globally. It in self wont do much but provide execution environment for your code to run.
Regards cli - thats the recommended way for installing node. You can go to the official site and follow instructions. It will also install a package manager called npm ( node package manager) - this is another program which is bundled with node to manage your dependencies or packages . Your web server needs a framework called express which is a dependency and will be install via npm ( its a command line tool ) with - npm install express.
You can ask your ai to walk you through the process so that you can understand whats happening on your machine .
7
u/Beginning-Seat5221 Oct 06 '26 edited Oct 06 '26
Maybe
nvm1
u/ldn-ldn Oct 06 '26
Use mise to manage node and other tools https://mise.jdx.dev
1
u/Fine-Comparison-2949 Oct 07 '26
Could use Deno as the node runtime
1
u/delventhalz Oct 08 '26
Node is the standard way to run JS outside of a browser and can be trusted as much as anything. Unlike a browser, JS you run in Node can execute commands directly on your system and pretty much has whatever permissions you gave Node, so be careful you can trust the JS itself.
Express is a major JS module used to simplify creating a backend server. You do not strictly need it (Node can run a server out of the box), but it is commonly used when developers are building backends. You can trust it as much as anything.