gpt4 book ai didi

angular - 在安装 'sudo npm install -g @angular/cli ' 时,它在 ubuntu 中出现错误

转载 作者:行者123 更新时间:2023-12-04 18:37:42 25 4
gpt4 key购买 nike

当我尝试在 ubunutu 上安装 Angular-CLI 时遇到问题
我的 Node.js 和 npm 版本

  • 节点-v9.11.1
  • npm - 5.6.0

    我执行的命令 savera9@savera9-desktop:~$ sudo npm install -g @angular/cli 我遇到错误

    npm ERR! git clone git@github.com:angular/cli Cloning into bare repository '/home/savera9/.npm/_git-remotes/git-github-com-angular-cli-515723dd'...

    npm ERR! git clone git@github.com:angular/cli Permission denied (publickey).

    npm ERR! git clone git@github.com:angular/cli fatal: Could not read from remote repository.

    npm ERR! git clone git@github.com:angular/cli

    npm ERR! git clone git@github.com:angular/cli Please make sure you have the correct access rights

    npm ERR! git clone git@github.com:angular/cli and the repository exists.

    npm ERR! addLocal Could not install angular/cli

    npm ERR! Error: ENOENT, stat 'angular/cli'

    npm ERR! If you need help, you may report this entire log,

    npm ERR! including the npm and node versions, at:

    npm ERR! http://github.com/npm/npm/issues

    npm ERR! System Linux 4.4.0-101-generic

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

    npm ERR! cwd /home/savera9

    npm ERR! node -v v0.10.36

    npm ERR! npm -v 1.4.28

    npm ERR! path angular/cli

    npm ERR! code ENOENT

    npm ERR! errno 34

    npm ERR!

    npm ERR! Additional logging details can be found in:

    npm ERR! /home/savera9/npm-debug.log

    npm ERR! not ok code 0

  • 最佳答案

    您似乎没有适当的管理员权限来安装 angular cli。尝试使用管理员帐户或咨询 IT 团队以进行代理配置。

    关于angular - 在安装 'sudo npm install -g @angular/cli ' 时,它在 ubuntu 中出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50566249/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com