问题
If I wanted to check which Node WebKit version I'm using, how would I do that from a command line?
回答1:
To know the version of node-webkit in app so you can determine whether certain APIs are available, to get it you can use:
process.versions['node-webkit']
And to quickly know the node-webkit's version you are using now, you can type nw:version
in the toolbar, then node-webkit would print the versions like:
node-webkit v0.3.5
node.js v0.8.14
If you are using Node Webkit Builder then use nwbuild -v
or nwbuild --version
回答2:
Launch node webkit from command line:
nw
Then type nw:version
in the address bar to get the version number.

回答3:
nw ls
from the command line gets a list of local cached nwjs versions, which may be helpful.
来源:https://stackoverflow.com/questions/28761447/how-to-print-node-webkit-version