java - springboot 应用程序在 Angular 上出现 fsevents 错误

标签 java node.js angular spring-boot npm-install

我正在尝试使用 springboot 应用程序创建一个 Angular 示例。当我尝试安装 bootstrap 时,出现此错误。 ng 版本和 npm 版本如下。

如何实现这些 ui 组件?

C:\workspace\ng2boot\src\main\webapp\angular2>npm install bootstrap@3
angular2@0.0.0 C:\workspace\ng2boot\src\main\webapp\angular2
`-- bootstrap@3.3.7

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})



C:\workspace\ng2boot\src\main\webapp\angular2>ng -v
    _                      _                 ____ _     ___
   / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
  / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
 / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
/_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
               |___/
@angular/cli: 1.2.1
node: 6.11.1
os: win32 x64


C:\workspace\ng2boot\src\main\webapp\angular2>npm -v
3.10.10

最佳答案

fsevents 是一个开发时“文件观察器”库,仅适用于 Mac OS X。

由于您使用的是 Windows,因此无法(也不应该)满足 OPTIONAL 依赖关系,因此您应该收到此警告。据我所知,没有办法抑制它。

我认为这不应该产生警告,但事实就是如此,至少现在,您只需忽略它。

关于java - springboot 应用程序在 Angular 上出现 fsevents 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46156472/

相关文章:

Java BitSet 奇怪的行为

java - Jsoup 获取隐藏邮件

node.js - Mongoose 将 _id'ss 保存为字符串而不是 ObjectId

node.js - 使用 yargs 从 require 迁移到 import es6

javascript - Angular 2 接口(interface)和 LocalStorage 服务

java - Spring Boot 启用全局 CORS 支持问题 : only GET is working, POST、PUT 和 Delete 不起作用

java - java中的自增id

html - 在 Angular 中删除元素时如何添加淡入淡出的动画效果?

javascript - 我在类里面使用 promise 哪里出错了?

javascript - 向 Kendo UI 上下文菜单项添加其他数据