install jsdocs code example Example: install jsdoc npm install -g jsdoc # or npm install --save-dev jsdoc