LoginSignup
1
3

More than 5 years have passed since last update.

Windows10 + Chocolatey + Node.js(LTS) + Yarn + Angular CLI

Posted at

Chocolateyのインストール

Node.jsのインストール

Chocolateyならコマンド一発です。LTS版をインストールしました。Win + X→Aで開いた管理者権限付きのPowerShellで次のコマンドを実行します。

cinst nodejs-lts

Yarnのインストール

同じく次のコマンドを実行します。

cinst yarn

ここで、nodejs(非LTS)版のインストールを求められるので、断ります。
npmはWindows版Angular CLIと相性が悪いのでパス。

Angular CLIのインストール

次のコマンドでインストールします。

yarn global add @angular/cli

これでngコマンドが使えます。

PS> ng --version
    _                      _                 ____ _     ___
   / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
  / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
 / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
/_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
               |___/
@angular/cli: 1.1.3
node: 6.11.0
os: win32 x64
1
3
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
1
3