Difference between revisions of "FAQ - Mod 6"
(Created page with "Welcome to the frequently asked questions page for Module 6. As many common questions can come up on Piazza, some of those questions are consolidated here. == Setup/Logistics...")
Revision as of 21:11, 20 December 2020
Welcome to the frequently asked questions page for Module 6. As many common questions can come up on Piazza, some of those questions are consolidated here.
Should I use a database for Module 6?
You can store everything locally in this module. No need to use a database.
How can I add an image to my instance? SFTP isn't working
There are a couple different ways to load an image onto your instance. One of the easiest is to use wget. When logged into your instance, run the following command in the terminal:
$ wget <imageurl>
Running this command will download the image straight onto your instance!
There are a couple common errors that students run into when setting up their Node.js. One of the most common looks like this
ENOENT: no such file or directory, open 'home/rlav/package.json'
The specific path may differ for your personal machine, but any path that ends in "package.json" in this error is likely a result of the same problem.
This is another common error message:
Cannot find module 'mime' error when running static_server.js
Both of these errors are a result of not setting up the package.json correctly. In fact, both are usually a result of not creating package.json at. After installing Node.js, you must run the following command to generate the package.json file.
$ npm init
After generating the package.json file, you must write the correct dependencies. Details on this are specified at the Node.JS page. If you follow everything on this page correctly, you should be able to set up Node.js rather smoothly.