LoginSignup
0

More than 5 years have passed since last update.

no decode delegate for this image format の解放

Posted at

no decode delegate for this image format

前提です

  • nvmがインストールしてある
  • npmつまり使っている
  • ImageMagickを使っている(ここは直接原因ではありませんが今回はこれだったので)

nvm useで変更される環境

 理解してお使いの方にはなんてことない話ですが、私みたいに「かっこいいから」と真似して特に意図もなくnvmを使うとこのエラーを出すことがあります。

対策シェル

 時間がないので簡潔に。

nvm_use.sh

source $(brew --prefix nvm)/nvm.sh
nvm use --delete-prefix $1 --silent
export NODE_PATH=$(npm root -g)

これを実行します

sh nvm_use.sh v7.10.0

これでとりあえず自分は回避できました。

この件で出力されるエラーメッセージにはno decode delegate for this image formatなんてのもありましたが、要するにインストールしたモジュールが見えないのが原因でした。
何が起きてるのか理屈はまた気が向いたら別途アップします。

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
0