【发布时间】:2021-10-09 13:00:21
【问题描述】:
我有一个空白的离子项目,我正在尝试将电容器与离子集成以构建 android 应用程序。
我运行这个命令。 ionic capacitor add android 这个抛出的 npm 错误请帮我解决这个问题
C:\Users\i\Rabi\learn\ilearn>离子电容添加android
离子集成启用电容器 npm.cmd i --save -E @capacitor/core npm WARN @ionic/angular-toolkit@4.0.0 需要对等 @angular-devkit/architect@^0.1200.0 但没有安装。你必须 自己安装对等依赖项。 npm WARN ajv-keywords@3.5.2 需要一个对等的 ajv@^6.9.1 但没有安装。你必须安装 自己的对等依赖项。 npm WARN 包@angular/compiler 是 包括作为开发和生产依赖项。 npm 警告 可选 跳过可选依赖项:fsevents@2.3.2 (node_modules\fsevents): npm WARN notsup 跳过可选依赖:不支持的平台 fsevents@2.3.2:想要 {"os":"darwin","arch":"any"}(当前: {"os":"win32","arch":"x64"}) npm WARN 可选 SKIPPING OPTIONAL 依赖:fsevents@1.2.13 (node_modules\webpack-dev-server\node_modules\fsevents): npm WARN notsup 跳过可选依赖:不支持的平台 fsevents@1.2.13: 想要 {"os":"darwin","arch":"any"}(当前: {"os":"win32","arch":"x64"})
- @capacitor/core@3.1.2 在 20.453 秒内更新了 1 个包并审核了 1639 个包
130 个包正在寻找资金运行
npm fund了解详情发现 3 个中等严重性漏洞运行
npm audit fix来修复 他们,或npm audit了解详情npm.cmd i -D -E @capacitor/cli npm WARN @ionic/angular-toolkit@4.0.0 需要 @angular-devkit/architect@^0.1200.0 的对等体,但没有一个是 安装。您必须自己安装对等依赖项。 npm 警告 ajv-keywords@3.5.2 需要一个对等的 ajv@^6.9.1 但没有一个是 安装。您必须自己安装对等依赖项。 npm 警告 包 @angular/compiler 包含在开发和生产中 依赖。 npm WARN 可选跳过可选依赖: fsevents@2.3.2 (node_modules\fsevents): npm WARN notsup SKIPPING 可选依赖:fsevents@2.3.2 不受支持的平台:需要 {"os":"darwin","arch":"any"} (当前:{"os":"win32","arch":"x64"}) npm WARN 可选跳过可选依赖:fsevents@1.2.13 (node_modules\webpack-dev-server\node_modules\fsevents): npm WARN notsup 跳过可选依赖:不支持的平台 fsevents@1.2.13: 想要 {"os":"darwin","arch":"any"}(当前: {"os":"win32","arch":"x64"})
- @capacitor/cli@3.1.2 在 17.196 秒内更新了 1 个包并审核了 1639 个包
129 个包正在寻找资金运行
npm fund了解详情发现 3 个中等严重性漏洞运行
npm audit fix来修复 他们,或npm audit了解详情capacitor.cmd init ilearn io.ionic.starter --npm-client npm error: unknown option '--npm-client' [ERROR] 运行时出错 子过程电容器。
capacitor.cmd init ilearn io.ionic.starter --npm-client npm exited with exit code 1. Re-running this command with the --verbose flag may provide more information.
我尝试了 npm 审计修复但没有成功
【问题讨论】:
标签: node.js angular ionic-framework npm