简体   繁体   English

Springboot应用程序在角度上出现fsevents错误

[英]fsevents error on angular with springboot application

I am trying to create a angular sample with springboot application. 我正在尝试使用springboot应用程序创建一个角度样本。 When I tried to install bootstrapt, I got this error. 当我尝试安装bootstrapt时,出现此错误。 ng version and npm version are in below. ng版本和npm版本在下面。

How do I implement these ui components? 如何实现这些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 is a development-time 'file watcher' library that is only needed/available for Mac OS X. fsevents是一个开发时的“文件监视程序”库,仅Mac OS X才需要/可用。

Since you are on Windows, the OPTIONAL dependency cannot be satisfied (nor should it be), so you should be getting this warning. 由于您使用的是Windows,因此不能满足OPTIONAL依赖性(也不应该如此),因此您应该收到此警告。 As far as I know, there's no way to suppress it. 据我所知,没有办法抑制它。

I would argue that this should not produce a warning, but that's the way that it is, and at least for now, you're going to just have to ignore it. 我认为这不应产生警告,但是这就是警告的方式,至少现在,您将不得不忽略它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM