LoginSignup
6
2

More than 3 years have passed since last update.

プロキシ下のWindowsでhyper-pokemonする

Last updated at Posted at 2019-07-18

どうしてもhyper-pokemonしたい!

Windows環境で、Terminalアプリを探していたところHyper™と言うTerminalを発見した。
さらにHyperをピカチュウ仕様にするhyper-pokemon-pluginまであるらしい😊

早速Hyperをインストールしてプラグインを有効にしようとしたら、いつも邪魔するアイツ・・・そうプロキシサーバーに阻止された。いつものことですが、軽く絶望します。

PS C:\Users\xxxxxx> hyper i hyper-pokemon
connect ECONNREFUSED xxx.xxx.xxx.xxx:443
Plugin check failed. Check your internet connection or retry later.

どうしてもピカチュウにしたかったので、頑張ってインストールしてみました😀

npmを利用できるようにしてチャレンジ

調査したところ、すでに解決されている方がいた。
どうやら、hyperは内部でnpmコマンドを呼んでいるらしいとの情報があり、プロキシの設定ができるとのこと。
すぐにNode.jsをインストール。

参考にさせていただき、プロキシの設定をして・・・

npm config set proxy "http://[プロキシ]サーバ:[ポート]"
npm config set https-proxy "http://[プロキシ]サーバ:[ポート]"
npm config set registry "https://registry.npmjs.org/"

再度、hyperコマンドを叩くも。。。相変わらずプロキシの壁は高し😫

PS C:\Users\xxxxxx> hyper i hyper-pokemon
connect ECONNREFUSED xxx.xxx.xxx.xxx:443
Plugin check failed. Check your internet connection or retry later.

npmコマンドでインストールする

少々途方に暮れていたが、npmリポジトリでhyper-pokemonは公開されているので、試しにnpmコマンドでhyper-pokemonをインストールしたら、あっさりインストールできた。
hyperコマンドは動かないが、npmコマンドはちゃんとプロキシを越えてくれた😲

PS C:\Users\xxxxxx> npm install hyper-pokemon

+ hyper-pokemon@0.4.6
added 11 packages from 15 contributors and audited 12 packages in 7.819s
found 0 vulnerabilities

なお、この後hyperを立ち上げてもやっぱりポケモンとはならなかった・・・
ちゃんとプレグインディレクトリにインストールしないといけない。

プラグインのフォルダは。
hyper公式サイトのExtensionsにパスが書いてあったのでやってみたらできた。
$Env:AppData/Hyper/.hyper_plugins.

PS C:\Users\xxxxx\AppData\Roaming\Hyper\.hyper_plugins>> npm install hyper-pokemon

+ hyper-pokemon@0.4.6
added 11 packages from 15 contributors and audited 12 packages in 6.112s
found 0 vulnerabilities

この後、.hyper.jsを修正して、プラグインを読み込むようにしたら動きました:relaxed:
なお、最初の起動時に選ばれたポケモンは・・・ヤドンでした・・・少しかなしい:imp:

参考にしたサイト

6
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
2