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
browserify -r './js/docxgen.js' > build/docxgen.js
uglifyjs build/docxgen.js > build/docxgen.min.js

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