2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

yarnのインストール方法

Posted at

問題

  • yarn run buildでエラーになる。
    $ yarn run build
    00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'run'
    

解決策

  • yarnのバージョンが古いだけ。
  • 最新のyarnをインストールすればよい。
    # 古いyarnを削除
    $ sudo apt remove yarn
    $ sudo apt remove cmdtest
    $ sudo apt autoremove
    
    # 最新のyarnをインストール
    curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
    echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
    sudo apt-get update
    sudo apt-get install yarn
    

以上

2
1
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
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?