npm ERR! 404 Not Found: 1.9.1@latest



我将一个项目克隆到我的本地仓库:

$  npm i 
npm WARN cropper@3.1.4 requires a peer of jquery@>= 1.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN The package iview is included as both a dev and production dependency.
npm WARN The package vuex is included as both a dev and production dependency.

但是,当我手动安装jquery@>= 1.9.1依赖项时,我找不到错误:

$ npm install jquery@>= 1.9.1 --save-dev
npm ERR! code E404
npm ERR! 404 Not Found: 1.9.1@latest
npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/luowensheng/.npm/_logs/2018-02-12T07_13_29_793Z-debug.log

这条线

npm WARN cropper@3.1.4 requires a peer of jquery@>= 1.9.1 but none is installed. You must install peer dependencies yourself.

意味着您需要具有大于1.9.1

jquery版本

只是做

npm install jquery@^1.9.1npm install jquery@latest如果需要最新的jquery版本,该版本为3.x.x

最新更新