To install a Node.js module without using npm, we download the module into the node_modules directory.
After we downloaded the module into the folder, we write
const moduleName = require("foo");
in our code to import the foo module assuming that’s what we downloaded.