1 Answer
1

So when you require packages on node, you also need to install them in your node_modules folder. They must be in the node_modules folder as well as "required" in your code. They can only be declared in your "package.json."

If you go into your project directory (the file where package.json is located) and run:

npm install

it should install your missing dependencies into your 'node_modules' folder.