【问题标题】:Error tying to run the command "npm install angular-in-memory-web-api --save"运行命令“npm install angular-in-memory-web-api --save”时出错
【发布时间】:2019-09-07 15:49:59
【问题描述】:

我是 Angular 新手,所以我正在尝试学习 https://angular.io/tutorial/toh-pt6 上的教程

npm WARN 可选跳过可选依赖:fsevents@1.2.7 (node_modules\fsevents): npm WARN notsup 跳过可选依赖:fsevents@1.2.7 不受支持的平台:想要 {"os":"darwin","arch":"any"}(当前:{"os":"win32","arch": "x64"})

  • angular-in-memory-web-api@0.8.0 在 21.447 秒内更新了 1 个包并审核了 42609 个包 发现5个高危漏洞 运行npm audit fix 来修复它们,或运行npm audit 了解详情

【问题讨论】:

    标签: angular


    【解决方案1】:

    根据this issue。您可以忽略此警告,因为在 macOS 上需要 fsevents,因此在 Windows 上会跳过它。

    【讨论】:

      【解决方案2】:

      这是一个可选的依赖,所以你可以忽略它。

      如果你真的希望这条消息消失 - 尝试更新 npm

      npm i -g npm@latest
      

      它可以提供帮助。

      【讨论】:

        猜你喜欢
        • 2020-11-27
        • 1970-01-01
        • 2018-12-09
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2022-01-05
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多