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 browserify.

git clone && cd docxtemplater
npm install -g gulp jasmine-node uglify-js
npm install
gulp allCoffee
mkdir build -p
browserify -r ./js/docxgen.js -s Docxgen > build/docxgen.js
uglifyjs build/docxgen.js > build/docxgen.min.js

The -s Docxgen will export docxgen to window.Docxgen for easy usage

Your version of docxtemplater will be in /build (minified and non minified options).