【问题标题】:Is possible to install angular cli not by cmd?是否可以不通过 cmd 安装 angular cli?
【发布时间】:2023-01-25 19:53:18
【问题描述】:

除了在cmd中通过命令安装angular cli还有其他方法吗? 当我运行 npm install -g @angular/cli 时,代理设置出现问题(我正在使用 vpn 工作)

npm ERR! code ETIMEDOUT
npm ERR! syscall connect
npm ERR! errno ETIMEDOUT
npm ERR! network request to registry.npmjs failed, reason: connect ETIMEDOUT
npm ERR! network This is a problem related to network connectivity.
npm ERR! In most cases you are behind a proxy or have bad network settings.

我可以通过某些 .exe 文件或 .zip 添加它吗?

【问题讨论】:

    标签: angular npm npm-install


    【解决方案1】:

    如果你有你的包的 zip 文件,你可以使用 npmyarn 安装它:

    npm install ./package.zip
    

    或者

    yarn add ./package.zip
    

    PS:要打包你的文件(如果你有包)你可以简单地在文件夹内使用yarn pack .

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-04-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-08-10
      相关资源
      最近更新 更多