【发布时间】:2017-11-03 23:42:13
【问题描述】:
我用 git 克隆了一个项目,该项目是用 ionic 2 创建的,但是当我执行重新创建 node_modules 文件夹的命令时,我得到了这个错误。
npm install
npm WARN deprecated object-keys@0.2.0: Please update to the latest object-keys
npm ERR! code ETARGET
npm ERR! notarget No matching version found for ionic-native@^3.5.0
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'ionic-hello-world'
npm ERR! notarget
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/wihermes/.npm/_logs/2017-06-02T13_58_47_295Z-debug.log
注意:我已经更新了 npm。
有人知道怎么解决吗?
【问题讨论】:
-
npm install -g ionic@latest之后出现同样的问题,它升级到 v.3.12.0 ... npm 抱怨“没有找到匹配的版本”,但它显然已安装。努力将package.json更改为目标“^3.0.0”,然后让它安装它想要的任何东西。这显然有效,但它只安装了 3.10.3。不知道为什么会有差异,但是嗯。
标签: npm