To clarify, does the error appear after you run
chmod, or when you try to run it using
file.js (or if that’s a placeholder, whatever the name of the file should be). Then, find the file in the file tree to the left. If it’s in a folder, use the
cd command in Bash like
cd folder. You may have to do this a few times (you can also do
cd folder/subfolder if there are multiple subfolders), but once you’re in the folder with the JS file, you can run
chmod from there. If you’re unsure how to navigate the directory structure, run
ls to list the folders and files in the directory, so you can match them up to the file tree.