vsetka / deepl-translator-cli

This command line tool delivers text translation capabilities to your console and is powered by DeepL (https://www.deepl.com/translator)
MIT License
148 stars 11 forks source link

can not install #6

Open sevku opened 4 years ago

sevku commented 4 years ago

I tried to install and it didn't work.

$ yarn global add deepl-translator-cli
yarn global v1.22.4
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed "deepl-translator-cli@1.1.2" with binaries:
      - deepl
Done in 0.32s.
$ deepl --version

Command 'deepl' not found, did you mean:

  command 'drepl' from snap drepl (0.2.1)

See 'snap info <snapname>' for additional versions.
pankaj4u4m commented 3 years ago

yarn global add deepl-translator-cli 00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'global'

$ sudo yarn global add deepl-translator-cli 00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'global'

fabienpiette commented 11 months ago

I made the same mistake with yarn. I tried with pnpm and it worked fine:

$ yarn global add deepl-translator-cli
yarn global v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed "deepl-translator-cli@1.1.2" with binaries:
      - deepl
Done in 2.44s.

$  deepl translate -t 'DE' 'How do you do?'
Command 'deepl' not found, did you mean:
  command 'drepl' from snap drepl (0.2.1)
  command 'deep' from deb python3-deepdiff (5.6.0-2)
See 'snap info <snapname>' for additional versions.

$ deepl -h
Command 'deepl' not found, did you mean:
  command 'drepl' from snap drepl (0.2.1)
  command 'deep' from deb python3-deepdiff (5.6.0-2)
See 'snap info <snapname>' for additional versions.

$ yarn global remove deepl-translator-cli
yarn global v1.22.19
[1/2] Removing module deepl-translator-cli...
[2/2] Regenerating lockfile and installing missing dependencies...
success Uninstalled packages.
Done in 0.07s.

$ pnpm add -g deepl-translator-cli
Packages: +10
++++++++++
Progress: resolved 10, reused 0, downloaded 10, added 10, done

/home/user/.local/share/pnpm/global/5:
+ deepl-translator-cli 1.1.2

Done in 2.7s

$ deepl 

  Usage: deepl [options] [command]

  Options:

    -V, --version  output the version number
    -h, --help     output usage information

  Commands:

    translate <text>  translates the text to a target language
    detect <text>     detects the text language
    help [cmd]        display help for [cmd]