Skip to content

Instantly share code, notes, and snippets.

@llccing
Created November 15, 2017 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save llccing/edec57056c66b491a84379f0830a6797 to your computer and use it in GitHub Desktop.
Save llccing/edec57056c66b491a84379f0830a6797 to your computer and use it in GitHub Desktop.
// 安装 npm-check
cnpm i -g npm-check

// 检查版本,项目下的依赖
npm-check -u 

// 检查版本,全局依赖
npm-check -u -g

发现通过npm-check,选中后在安装会安装不上去。

解决:

// 就是说,你清楚自己想升级的组件,然后通过npm-check知道相应的版本,即可进行升级
npm i -S iview@2.7.2

感谢

升级所有的依赖

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment