Stand with Ukraine 🇺🇦
Eleventy
The possum is Eleventy’s mascot

Eleventy Documentation

WARNING:
This is an older version of Eleventy. Go to the newest Eleventy docs (current path: /docs/global-installation/) or the full release history.
Menu

Install Eleventy Globally Jump to heading

WARNING:
Installing globally is a quick way to get started but it is preferred to use package.json installation instead. package.json installation will avoid versioning issues if you come back to this project later or decide to use Eleventy on multiple projects.

If you’re planning on deploying your site using a service like Netlify (running a build a deployment server), you must use package.json installation and not global installation.

Don’t include ~ $ when you run these commands.

npm install -g @11ty/eleventy

The above adds an eleventy command that you can use in any directory.

eleventy --version
2.0.0

Alternatively, it’s worthwhile to note that installation (global or local) is not required at all to run Eleventy, but suffers the same long-term versioning problems noted above. With that in mind, you can use npx to run Eleventy directly (included with npm):

npx @11ty/eleventy