/ /無効な名前:npmインストールを実行するときの「@ angular / cli」-アンギュラー、npm-install

無効な名前:npm installを実行すると "@ angular / cli" - angel、npm-install

angle / cliパッケージをインストールする必要がありますが、エラーが発生しました

$ sudo npm install -g @ angular / cli

しかし、私は次のエラーを受け取りました

npm ERR! Darwin 16.7.0

npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "@angular/cli"

npm ERR! node v6.6.0

npm ERR! npm  v3.10.3


npm ERR! Invalid name: "@angular/cli"

npm ERR!

npm ERR! If you need help, you may report this error at:

npm ERR!     <https://github.com/npm/npm/issues>


npm ERR! Please include the following file with any support request:

npm ERR!     /Users/jim/Downloads/project/admin/npm-debug.log

回答:

回答№1は0

package.jsonでangular / cliを設定するとどういうわけか奇妙に見えますが、npmバージョンの結果は古いので、npmの更新を行いました

$ sudo npm update npm -g

また、次のコマンドは、バージョンの確認に役立ち、「アンインストール->クリーン->インストール"

$ npm --v

$ node -v

$ sudo npm uninstall -g angular-cli

$ sudo npm cache clean

$ sudo npm install -g angular-cli @ latest