简体   繁体   English

npm ERR! 找不到404:1.9.1@latest

[英]npm ERR! 404 Not Found: 1.9.1@latest

I cloned a project to my local repo: 我将一个项目克隆到了本地仓库中:

$  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.

But when I install the jquery@>= 1.9.1 dependency manually , I get can not found error: 但是当我手动安装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

What this line 这条线是什么

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

means is you need to have a jquery version greater than 1.9.1 意味着您需要的jquery版本大于1.9.1

Just do 做就是了

npm install jquery@^1.9.1 or npm install jquery@latest if you want the latest jquery version which is 3.xx npm install jquery@^1.9.1npm install jquery@latest如果要最新的jquery版本是3.xx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM