LoginSignup
0
0

More than 1 year has passed since last update.

AngularCli ダウンロード (v15.2.5)

Posted at

はじめに

angularCLIをインストールしました。
自分用に記録しますが、もしも必要な方がいたら是非。

環境メモ

MAC OS
13.3.1(22E261)
intelCore

インストール

CLIコマンドでインストール

npm install -g @angular/cli

公式サイト
https://angular.jp/cli

※ここで出たエラー① npmのバージョンが古い

npmのバージョンが古いので怒られました。最新にします!!

npm notice New minor version of npm available! 9.5.0 -> 9.6.4
npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.6.4
npm notice Run npm install -g npm@9.6.4 to update!
npm -v
=> 9.5.0
npm update -g npm
npm -v
=> 9.6.4 新しいバージョン!!

npm公式サイト
https://docs.npmjs.com/about-npm

※ここで出たエラー②

権限のエラーが出てきたので管理権限でもう一度入力しました。

npm ERR! code EACCES
npm ERR! syscall rename
‥
sudo npm install -g @angular/cli

以上でCLIのインストールができました。

インストールされたかの確認 ngのインストール場所

which ng
=> /Users/〜〜〜/bin/ng

インストールされたかの確認 ngのバージョン

昔のバージョンの、ngコマンドだと怒られるので「v15.2.5」のものは「ng version」と間違えないように!

ng version

? Would you like to enable autocompletion? This will set up your terminal so pressing TAB while typing Angular CLI commands will show possible 
options and autocomplete arguments. (Enabling autocompletion will modify configuration files in your home directory.) Yes
Appended `source <(ng completion script)` to `/Users/csshtml/.zshrc`. Restart your terminal or run the following to autocomplete `ng` commands:

    source <(ng completion script)
? Would you like to share pseudonymous usage data about this project with the Angular Team
at Google under Google's Privacy Policy at https://policies.google.com/privacy. For more
details and how to change this setting, see https://angular.io/analytics. No
Global setting: disabled
Local setting: No local workspace configuration file.
Effective status: disabled

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 15.2.5

最後に

以上がCLIのインストールでした。
特に記述することはないのですが1点、下の warning が気になります。
原因は「Powershell」が原因みたいです。
解決までは調査できなかったので、また調べてみたいと思います。

Powershell
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.3

npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
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