【发布时间】:2017-12-18 12:24:42
【问题描述】:
我收到以下警告,但我不知道如何更新它们。 我也尝试安装所需的依赖项,但它不起作用。
npm WARN ajv-keywords@2.1.0 requires a peer of ajv@>=5.0.0 but none was installed.
npm WARN ionic2-super-tabs@2.6.3 requires a peer of ionic-angular@^3.4.0 but none was installed.
npm WARN ng2-translate@5.0.0 requires a peer of @angular/core@^2.0.0 but none was installed.
npm WARN ng2-translate@5.0.0 requires a peer of @angular/http@^2.0.0 but none was installed.
你能帮帮我吗?
最好的问候。
【问题讨论】:
-
将您的
package.json添加到问题中。 -
我有同样的问题。当我安装
ng-translate:npm install @ngx-translate/http-loader --save时它被触发了。 -
我也刚刚开始获取 ajv-keywords@2.1.0 需要 ajv@>=5.0.0 的对等点,但没有安装。我怀疑这是由于运行 ionic cordova plugin add cordova-sqlite-storage 然后 npm install --save @ionic/storage - 我相信如果你将“npm ls”的输出重定向到一个文件,它会帮助你追踪这些东西。似乎与 webpack 3.4.1有关
-
我最终删除了我的 node_modules 文件夹并再次执行 npm install .. 似乎为我修复了它
-
您是否安装了
ajv?
标签: angular ionic-framework npm ionic2 dependencies