springboot 应用程序 angular 上的 fsevents 错误

fsevents error on angular with springboot application

我正在尝试使用 springboot 应用程序创建一个 angular 示例。当我尝试安装 bootstrapt 时,出现此错误。 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 是开发时 'file watcher' 库,仅 needed/available 用于 Mac OS X。

由于您在 Windows,因此无法满足可选依赖项(也不应该满足),因此您应该会收到此警告。据我所知,没有办法压制它。

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