<%# %> <% if (!locals.excludePrerequisites) { %>

In order to install quick-lint-js' Nix package, you must first install Nix or NixOS.

<% } %> <% if (!locals.prerequisitesOnly) { %>

Open a terminal, and run the following command:

nix-env -iA nixpkgs.quick-lint-js

If the above command fails with “error: attribute 'quick-lint-js' in selection path 'nixpkgs.quick-lint-js' not found”, your Nixpkgs is out of date. Either update Nixpkgs, or install from quick-lint-js' repository instead:

nix-env -f https://c.quick-lint-js.com/releases/<%= qljsVersionInfo.version %>/source/quick-lint-js-<%= qljsVersionInfo.version %>.tar.gz -iA quick-lint-js
<% } %> <%# %>