Workflow¶
JavaScript is originally a browser scripting language. However, today, many other environments use it. Here we describe the following stack:
Node.js¶
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
- this can also contain a scope, e.g.
Important options are:
-g,--global: install the package globally. On Linux, this requiressudopermissions.