which is it?
if it’s text, send it to node, if it’s an archive, extract it
ehh. what. are you getting permission denied, or do you mean that you don’t know what to do with the content of the file?
It’ll be a text file encoded as utf-8, what most would refer to as plain text, maybe they’d save it with a .txt file extension to say so. If you tell your editor to open this, it shows you code.
You have a zip archive. What can you do with those? You’d unzip it yes? You’d need a program that offers to carry out such an operation, maybe your operating system offers to do it for you or otherwise use something like 7zip
Ok, I figured it out. I feel a little redeemed, because it was not straight forward. I’ll leave this here in case anyone else has a similar issue.
Per the directions on Codecademy, I downloaded Git Mash, VSC, and Node. However, there are several other steps to get NodeJs running in VSC, which Codecademy does not address. This video explains it very clearly: https://youtu.be/31dRWcPcvhM.
After you get NodeJs running in VSC, then you can open the project folder with all the code.
And, node doesn’t need to run from a text editor to run code, you can ask node directly to run code.
A text editor does things like … letting you type letters and saving what you typed to a file.
Those are separate things!
I don’t understand why at all, but many people seemingly insist on having their editor and executing environment be contained within an app. All this is really doing is treating that app as the operating system, the operating system already does things like file management and process management… windows management.
the directions for the project literally say that you need Node.js to open their file. You keep responding even though it doesn’t seem like you know what I am talking about. Maybe you should look at the project before you put me down.
If open means editing, then no, it’s just text, no node required. But it’s kind of pointless to edit code and then not run it.
Here’s me downloading, extracting, editing, running the project
I extract it with an archive manager.
I edit it with a text editor.
I run it with node.
All of them are opening a file, but more to the point, I’m asking them to do specific things, not “open”
The archive manager opens the zip file and writes out the contents into new files
The text editor opens main.js for editing, so it is both reading and writing the file
node reads the file, parses it and executes what the file says