【问题标题】:Not able to locate the animations folder in ngx-spinner folder in node_modules无法在 node_modules 的 ngx-spinner 文件夹中找到动画文件夹
【发布时间】:2022-11-22 02:50:07
【问题描述】:

嗨,我正在做一个有角度的项目,下面提到的是相同的版本细节。

  • 角度 v12
  • ngx-spinner v12

我无法在 node_modules 文件夹中的 ngx-spinner 库中找到动画文件夹。

我在 angular.json 文件中包含了 css 文件链接

"styles": [
              "src/styles.scss",
              "node_modules/bootstrap/dist/css/bootstrap.min.css",  
              "node_modules/ngx-spinner/animations/ball-scale-multiple.css"
            ]

我使用命令来安装 ngx-spinner

npm i ngx-spinner@12.0.0

但是 animations 文件夹似乎不存在于下面的 node_modules 文件夹中是相同的屏幕截图

你能告诉我这里可能是什么问题吗

【问题讨论】:

    标签: angular angular12 ngx-spinner


    【解决方案1】:

    我有同样的问题。使用 npm 安装时,它没有像您一样创建动画文件夹。我首先使用命令 npm install -g yarn 安装了 yarn。使用 yarn 命令安装 ngx-spinner 后,它创建了 animations 文件夹。纱线添加 ngx-spinner

    【讨论】:

      猜你喜欢
      • 2021-09-04
      • 2023-02-01
      • 1970-01-01
      • 2020-02-18
      • 2021-08-27
      • 1970-01-01
      • 2017-11-18
      • 2019-10-13
      • 1970-01-01
      相关资源
      最近更新 更多