I'm not clear on what is your specific problem with the question template. I have checked on my server, and I'm using the default nodejs question type, that is, using applications/library/nodejs_task.php
Can you provide a more specific error message or screenshot?
Regarding the installation of nodejs and related libraries, I'm using nvm to install node:
> nvm ls -> v6.10.0 system default -> v6.10.0
And the executable at /usr/bin/nodejs, as specified in nodejs_task.php is:
> /usr/bin/nodejs --version v4.8.0
And the installed packages are:
> npm ls /var/www └─┬ jsdom@9.2.1 ├── abab@1.0.3 ├── acorn@2.7.0 ├── acorn-globals@1.0.9 ├── array-equal@1.0.0 ├── cssom@0.3.1 ├── cssstyle@0.2.36 ├─┬ escodegen@1.8.0 │ ├── esprima@2.7.2 │ ├── estraverse@1.9.3 │ ├── esutils@2.0.2 │ ├─┬ optionator@0.8.1 │ │ ├── deep-is@0.1.3 │ │ ├── fast-levenshtein@1.1.3 │ │ ├── levn@0.3.0 │ │ ├── prelude-ls@1.1.2 │ │ ├── type-check@0.3.2 │ │ └── wordwrap@1.0.0 │ └─┬ source-map@0.2.0 │ └── amdefine@1.0.0 ├── iconv-lite@0.4.13 ├── nwmatcher@1.3.8 ├── parse5@1.5.1 ├─┬ request@2.72.0 │ ├── aws-sign2@0.6.0 │ ├── aws4@1.4.1 │ ├─┬ bl@1.1.2 │ │ └─┬ readable-stream@2.0.6 │ │ ├── core-util-is@1.0.2 │ │ ├── inherits@2.0.1 │ │ ├── isarray@1.0.0 │ │ ├── process-nextick-args@1.0.7 │ │ ├── string_decoder@0.10.31 │ │ └── util-deprecate@1.0.2 │ ├── caseless@0.11.0 │ ├─┬ combined-stream@1.0.5 │ │ └── delayed-stream@1.0.0 │ ├── extend@3.0.0 │ ├── forever-agent@0.6.1 │ ├─┬ form-data@1.0.0-rc4 │ │ └── async@1.5.2 │ ├─┬ har-validator@2.0.6 │ │ ├─┬ chalk@1.1.3 │ │ │ ├── ansi-styles@2.2.1 │ │ │ ├── escape-string-regexp@1.0.5 │ │ │ ├─┬ has-ansi@2.0.0 │ │ │ │ └── ansi-regex@2.0.0 │ │ │ ├─┬ strip-ansi@3.0.1 │ │ │ │ └── ansi-regex@2.0.0 │ │ │ └── supports-color@2.0.0 │ │ ├─┬ commander@2.9.0 │ │ │ └── graceful-readlink@1.0.1 │ │ ├─┬ is-my-json-valid@2.13.1 │ │ │ ├── generate-function@2.0.0 │ │ │ ├─┬ generate-object-property@1.2.0 │ │ │ │ └── is-property@1.0.2 │ │ │ ├── jsonpointer@2.0.0 │ │ │ └── xtend@4.0.1 │ │ └─┬ pinkie-promise@2.0.1 │ │ └── pinkie@2.0.4 │ ├─┬ hawk@3.1.3 │ │ ├── boom@2.10.1 │ │ ├── cryptiles@2.0.5 │ │ ├── hoek@2.16.3 │ │ └── sntp@1.0.9 │ ├─┬ http-signature@1.1.1 │ │ ├── assert-plus@0.2.0 │ │ ├─┬ jsprim@1.2.2 │ │ │ ├── extsprintf@1.0.2 │ │ │ ├── json-schema@0.2.2 │ │ │ └── verror@1.3.6 │ │ └─┬ sshpk@1.8.3 │ │ ├── asn1@0.2.3 │ │ ├── assert-plus@1.0.0 │ │ ├── dashdash@1.14.0 │ │ ├── ecc-jsbn@0.1.1 │ │ ├── getpass@0.1.6 │ │ ├── jodid25519@1.0.2 │ │ ├── jsbn@0.1.0 │ │ └── tweetnacl@0.13.3 │ ├── is-typedarray@1.0.0 │ ├── isstream@0.1.2 │ ├── json-stringify-safe@5.0.1 │ ├─┬ mime-types@2.1.11 │ │ └── mime-db@1.23.0 │ ├── node-uuid@1.4.7 │ ├── oauth-sign@0.8.2 │ ├── qs@6.1.0 │ ├── stringstream@0.0.5 │ └── tunnel-agent@0.4.3 ├── sax@1.2.1 ├── symbol-tree@3.1.4 ├── tough-cookie@2.2.2 ├── webidl-conversions@3.0.1 ├─┬ whatwg-url@3.0.0 │ └── tr46@0.0.3 └── xml-name-validator@2.0.1
I'm not quite sure why there are different version numbers between the "node" and "nodejs" executables...
Please let me know if this is helpful to you,
Best regards