【发布时间】: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