LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-02-2018, 07:58 AM   #1
Chengxuan
LQ Newbie
 
Registered: Oct 2018
Posts: 3

Rep: Reputation: Disabled
fial to install tldr


the prompt:
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
what should i do ?
 
Old 10-02-2018, 08:19 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,901

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
post more info.
 
2 members found this post helpful.
Old 10-02-2018, 08:24 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,656

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by Chengxuan View Post
the prompt:
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
what should i do ?
First thing you should do is read the "Question Guidelines" and "How to ask a smart question" links in my posting signature. You provide NO details at all (version/distro of Linux, where you got this software, what you did/tried to get this message, etc.), that would let us even begin to help you.
 
1 members found this post helpful.
Old 10-02-2018, 08:37 AM   #4
Chengxuan
LQ Newbie
 
Registered: Oct 2018
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
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
 
Old 10-02-2018, 01:53 PM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,901

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
I can guess only, you need to run first apt-get install nodejs npm and afterward npm install -g tldr.
Please post the output of these commands.
 
1 members found this post helpful.
Old 10-02-2018, 10:43 PM   #6
Chengxuan
LQ Newbie
 
Registered: Oct 2018
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
I can guess only, you need to run first apt-get install nodejs npm and afterward npm install -g tldr.
Please post the output of these commands.
thanks
i have solved the question
i installed the python version tldr as wikipia tutorial
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] [RHL 6.2] Fresh install. XWindows Server didn't install. Can I install it manually? Patriot2135 Red Hat 9 11-19-2013 12:37 AM
Install packages from Fedora LiveCD usb key without internet access (from install) MissMetal Linux - Newbie 1 02-05-2013 07:59 AM
yum install lib getting fails yum install lib* leads to install 1050 dependency pkg LittleMaster Linux - Server 3 10-29-2012 01:14 AM
Ubuntu as frugal install, iso install, img install? impossible? nooby Ubuntu 15 08-22-2008 05:49 AM
Red Hat Linux 9 install: error "No devices found to install ... gunneszz Red Hat 1 03-10-2008 04:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration