Quote:
Originally Posted by pan64
post more info.
|
i am sorry to provide so few info
i am chinese and have poor English
return the quetion , i tell you detailed info:
my ubuntu version is ubuntu 16.04 LTS
and i try to install tldr to learn command :
i first run : npm install -g tldr (i think the command have implemented)
and then i run : apt-get install nodejs npm (i think the command also have implemented)
then i run: tldr command;
prompted:
/usr/local/lib/node_modules/tldr/lib/tldr.js:135
function printBestPage(command, options={}) {
^
SyntaxError: Unexpected token =
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/usr/local/lib/node_modules/tldr/bin/tldr:5:14)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
i try to upgrade npm and node( although i don't understand npm and node)
but not effect
thanks your reply