To install docxtemplater, we recommend you to use npm.

npm install docxtemplater

If you want to use the command line interface, you should use the global flag, eg:

npm install docxtemplater -g


I recommend you to use the npm scripts I wrote (which can be found in the package.json).

git clone && cd docxtemplater
npm install
npm run compile
# Optionally :
# npm run browserify
# npm run uglify:lib

Docxtemplater will be exported to window.Docxtemplater for easy usage (on some systems, it might export it in window.docxtemplater (see

Your version of docxtemplater will be in /build (minified and non minified options) and already include all dependencies