0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

yarn installへのクレーム

Posted at

目的

とあるプログラミング学習サービスで、Gitについて手を動かしながら学ぶために、yarn installを実行する。

プロセス

qiita.rb
$ yarn install
yarn: The term 'yarn' is not recognized as a name of a cmdlet, function, script file, or executable program.

"yarn"がない。"yarn is not recognized"で検索。
このサイトを見つける。

これを試してみる。

$ npm install -g yarn
npm: The term 'npm' is not recognized as a name of a cmdlet, function, script file, or executable program.

今度はnpmがない。また、node.jsがいるらしい。
"npm is not recognized"と検索する。このサイトを見つける。

node -v
node: The term 'node' is not recognized as a name of a cmdlet, function, script file, or executable program.

"node is not recognized"と検索。
→scoopのバージョンを確認するといいらしい。

scoop -v
scoop: The term 'scoop' is not recognized as a name of a cmdlet, function, script file, or executable program.

→scoopもないみたい(泣)
"scoop is not recognized"と検索。このサイトを見つける。

とりあえず上のサイトの通りにやってみる。

$ nvm list available

|   CURRENT    |     LTS      |  OLD STABLE  | OLD UNSTABLE |
|--------------|--------------|--------------|--------------|
|   23.10.0    |   22.14.0    |   0.12.18    |   0.11.16    |
|    23.9.0    |   22.13.1    |   0.12.17    |   0.11.15    |
|    23.8.0    |   22.13.0    |   0.12.16    |   0.11.14    |
|    23.7.0    |   22.12.0    |   0.12.15    |   0.11.13    |
|    23.6.1    |   22.11.0    |   0.12.14    |   0.11.12    |
|    23.6.0    |   20.19.0    |   0.12.13    |   0.11.11    |
|    23.5.0    |   20.18.3    |   0.12.12    |   0.11.10    |
|    23.4.0    |   20.18.2    |   0.12.11    |    0.11.9    |
|    23.3.0    |   20.18.1    |   0.12.10    |    0.11.8    |
|    23.2.0    |   20.18.0    |    0.12.9    |    0.11.7    |
|    23.1.0    |   20.17.0    |    0.12.8    |    0.11.6    |
|    23.0.0    |   20.16.0    |    0.12.7    |    0.11.5    |
|   22.10.0    |   20.15.1    |    0.12.6    |    0.11.4    |
|    22.9.0    |   20.15.0    |    0.12.5    |    0.11.3    |
|    22.8.0    |   20.14.0    |    0.12.4    |    0.11.2    |
|    22.7.0    |   20.13.1    |    0.12.3    |    0.11.1    |
|    22.6.0    |   20.13.0    |    0.12.2    |    0.11.0    |
|    22.5.1    |   20.12.2    |    0.12.1    |    0.9.12    |
|    22.5.0    |   20.12.1    |    0.12.0    |    0.9.11    |
|    22.4.1    |   20.12.0    |   0.10.48    |    0.9.10    |

^^^^^^^^^^^^^^^^^^^^^^^^^^^^省略^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

とりま、最新のやつインストールしてみよう。

$ yarn install    
yarn: The term 'yarn' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

な~んでできないの~(泣)

$ npm install -g yarn

added 1 package in 2s
npm notice
npm notice New major version of npm available! 10.9.2 -> 11.2.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.2.0
npm notice To update run: npm install -g npm@11.2.0
npm notice

お、アップデートしろってことなのか?

$ npm install -g npm@11.2.0

removed 13 packages, and changed 54 packages in 7s
$ npm install -g yarn      

changed 1 package in 11s
yarn install
yarn install v1.22.22
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning " > typescript-eslint@7.18.0" has incorrect peer dependency "eslint@^8.56.0".
warning "typescript-eslint > @typescript-eslint/eslint-plugin@7.18.0" has incorrect peer dependency "eslint@^8.56.0".
warning "typescript-eslint > @typescript-eslint/parser@7.18.0" has incorrect peer dependency "eslint@^8.56.0".
warning "typescript-eslint > @typescript-eslint/utils@7.18.0" has incorrect peer dependency "eslint@^8.56.0".
warning "typescript-eslint > @typescript-eslint/eslint-plugin > @typescript-eslint/type-utils@7.18.0" has incorrect peer dependency "eslint@^8.56.0".
[4/4] Building fresh packages...
Done in 24.79s.

えっと、これってできてるよね?

$ yarn install
yarn install v1.22.22
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.24s.

できてる。でもクリア判定が出ない。

再起動後、無事クリアしたのであった。
yarn installにはnode.jsなど、いろいろ必要だったみたい。

感想

F**k!

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?