npm install 找不到已安装的包
npm install not finding package installed
我正在安装一个 generator-phonegap,它请求它没有找到的打包的 phonegap。但我知道它已安装!
我尝试全局安装
C:>npm install -g generator-phonegap
这就是错误:
npm ERR! notarget No compatible version found: phonegap@'>=3.1.0 <3.2.0'
npm ERR! notarget Valid install targets:
npm ERR! notarget ["4.2.0-0.26.0","5.0.0-0.27.0","5.0.0-0.27.1"]
npm ERR! notarget This is most likely not a problem with npm itself.
npm ERR! notarget In most cases you or one of your dependencies are request
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'generator-phonegap'
我之前安装了“5.0.0-0.27.1”版本的phonegap。
看起来 npm 没有检查全局安装的模块
node-v.0.12 和 npm-v 2.7.4
根据 npmjs.org,generator-phonegap
上次发布大约一年前。
根据其package.json
中列出的依赖项,需要phonegap
3.1.x。据我所知,没有已发布的 phonegap
版本与之匹配。最接近的是 3.1.0-0.15.0
但 -
表示这是预发布版本。所以是"less than"3.1.x。所以,没有骰子。
我会避免使用此生成器,因为它似乎没有得到积极维护,而且安装似乎确实损坏了,而且您的系统也没有什么奇怪的地方。但是,如果您真的想玩它,请从 the GitHub repo 克隆它并手动将 package.json
中的 phonegap
要求更新为现有的东西。 (如果你这样做,请向 repo 提交 PR!)
我正在安装一个 generator-phonegap,它请求它没有找到的打包的 phonegap。但我知道它已安装!
我尝试全局安装 C:>npm install -g generator-phonegap
这就是错误:
npm ERR! notarget No compatible version found: phonegap@'>=3.1.0 <3.2.0'
npm ERR! notarget Valid install targets:
npm ERR! notarget ["4.2.0-0.26.0","5.0.0-0.27.0","5.0.0-0.27.1"]
npm ERR! notarget This is most likely not a problem with npm itself.
npm ERR! notarget In most cases you or one of your dependencies are request
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'generator-phonegap'
我之前安装了“5.0.0-0.27.1”版本的phonegap。
看起来 npm 没有检查全局安装的模块
node-v.0.12 和 npm-v 2.7.4
根据 npmjs.org,generator-phonegap
上次发布大约一年前。
根据其package.json
中列出的依赖项,需要phonegap
3.1.x。据我所知,没有已发布的 phonegap
版本与之匹配。最接近的是 3.1.0-0.15.0
但 -
表示这是预发布版本。所以是"less than"3.1.x。所以,没有骰子。
我会避免使用此生成器,因为它似乎没有得到积极维护,而且安装似乎确实损坏了,而且您的系统也没有什么奇怪的地方。但是,如果您真的想玩它,请从 the GitHub repo 克隆它并手动将 package.json
中的 phonegap
要求更新为现有的东西。 (如果你这样做,请向 repo 提交 PR!)