Workflow

JavaScript is originally a browser scripting language. However, today, many other environments use it. Here we describe the following stack:

Node.js

wikipedia

npm

npm is the package manager for Node.js. To install a package, use the install command as:

npm install <package specification>

The <package specification> can be:

  • a package name, e.g. npm install express
    • this can also contain a scope, e.g. npm install @openai/codex

Important options are:

  • -g, --global: install the package globally. On Linux, this requires sudo permissions.