Node.js is an exquisite piece of programming infrastructure. One of its main features is support for developer-defined dependencies. As a programmer – or in my case, as a teacher – you can inform the underlying node package manager (
npm) that your project “depends” on some group of other projects. This allows programmers to build constantly on each other’s work.
In our assignments, node dependencies are mostly used to enable the tests, whose main function is to help you figure out whether you’ve done the assignments correctly. Installing node dependencies is pretty simple, but can be confusing if you’re completely new to node, the command line, and programming in general. Here are the (very simple!) instructions:
cdas per the navigation help page
You should see some complex output from the command, after which your node dependencies will be installed. You can actually see the installed files by browsing the contents of the
node_modules directory, which should now be present in your working directory.
Once the dependencies are installed, you should be able to run the node tests with
npm test (issued from the same directory, that is, the root directory of your repository).
I hope that helps!