【问题标题】:fsevents error on angular with springboot application带有springboot应用程序的角度上的fsevents错误
【发布时间】:2018-02-19 17:46:55
【问题描述】:

我正在尝试使用 springboot 应用程序创建一个角度示例。当我尝试安装引导程序时,出现此错误。 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

【问题讨论】:

  • 警告不是错误,角度应该仍然有效
  • 我知道但我想实现这些 ui 组件。怎么能这样?
  • npm cache clean这样清除缓存后你试过了吗?
  • 我试过清理缓存,angular2@0.0.0 C:\workspace\ng2boot\src\main\webapp\angular2 `-- (empty) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0. 0 (node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 不支持的平台: 想要 {"os":"darwin","arch":"any"} (当前: {" os":"win32","arch":"x64"}) npm WARN eslint-plugin-react@7.3.0 需要 eslint@^3.0.0 的 peer || ^4.0.0 但没有安装。 npm 错误!代码 1

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


【解决方案1】:

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

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

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

【讨论】:

  • 感谢您提供信息。我知道它就像组件库!
猜你喜欢
  • 2020-03-07
  • 1970-01-01
  • 1970-01-01
  • 2020-01-26
  • 1970-01-01
  • 2022-11-08
  • 2017-05-05
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多