Section F.1 Node and npm
node.js, whose executable is simply
node. Programs designed for execution by
nodeoften build on other programs. These are all organized in packages, which can be managed by the Node Package Manager, known as
npmfor short. A basic purpose of
npmis to manage versions and dependencies among packages.
So the first step is to install both
npmon your system. These programs are meant to be cross-platform, so once you do these two operating-system-specific installations, we can proceed with generic instructions. (2020-11-09: we could add instructions for specific operating systems to other appendices?)
nodeshould be on your path, and you can try
to see if your operating system can locate it automatically. If not, then you will need to edit your peronal copy of the
pretext.cfgconfiguration file to have the
nodekey provide a path to the executable (see Section 47.6).
npmcommands, in the form of examples.
||Full tree of installed packages (local)|
||Just one package|