首页
Javascript
Html
Css
Node.js
Electron
移动开发
工具类
服务端
浏览器相关
前端收藏
其他

用npm-check批量更新依赖

2018年05月16日 发布 阅读(362) 作者:懒炖

安装

全局安装

  1. npm install -g npm-check

检测可更新依赖

直接输入npm-check,然后回车

  1. D:\project\test\trunk>npm-check
  2. body-parser UPDATE! Your local install is out of date. https://github.com/expressjs/body-parser#readme
  3. npm install --save body-parser@1.18.3 to go from 1.17.1 to 1.18.3
  4. NOTUSED? Still using body-parser?
  5. Depcheck did not find code similar to require('body-parser') or import from 'body-parser'.
  6. Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
  7. Use --skip-unused to skip this check.
  8. To remove this package: npm uninstall --save body-parser
  9. colors � UPDATE! Your local install is out of date. https://github.com/Marak/colors.js
  10. npm install --save colors@1.3.2 to go from 1.1.2 to 1.3.2
  11. � NOTUSED? Still using colors?
  12. Depcheck did not find code similar to require('colors') or import from 'colors'.
  13. Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
  14. Use --skip-unused to skip this check.
  15. To remove this package: npm uninstall --save colors
  16. cookie-parser NOTUSED? Still using cookie-parser?
  17. Depcheck did not find code similar to require('cookie-parser') or import from 'cookie-parser'.
  18. Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
  19. Use --skip-unused to skip this check.
  20. To remove this package: npm uninstall --save cookie-parser
  21. dateformat � MAJOR UP Major update available. https://github.com/felixge/node-dateformat
  22. npm install --save dateformat@3.0.3 to go from 1.0.12 to 3.0.3
  23. � NOTUSED? Still using dateformat?
  24. Depcheck did not find code similar to require('dateformat') or import from 'dateformat'.
  25. Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
  26. Use --skip-unused to skip this check.
  27. To remove this package: npm uninstall --save dateformat
  28. del MAJOR UP Major update available. https://github.com/sindresorhus/del#readme
  29. npm install --save del@3.0.0 to go from 1.2.1 to 3.0.0
  30. NOTUSED? Still using del?
  31. Depcheck did not find code similar to require('del') or import from 'del'.
  32. Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
  33. Use --skip-unused to skip this check.
  34. To remove this package: npm uninstall --save del
  35. express � UPDATE! Your local install is out of date. http://expressjs.com/
  36. npm install --save express@4.16.4 to go from 4.15.2 to 4.16.4
  37. � NOTUSED? Still using express?
  38. Depcheck did not find code similar to require('express') or import from 'express'.
  39. Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
  40. Use --skip-unused to skip this check.
  41. To remove this package: npm uninstall --save express
  42. fs-extra MAJOR UP Major update available. https://github.com/jprichardson/node-fs-extra
  43. npm install --save fs-extra@7.0.1 to go from 1.0.0 to 7.0.1
  44. NOTUSED? Still using fs-extra?
  45. Depcheck did not find code similar to require('fs-extra') or import from 'fs-extra'.
  46. Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
  47. Use --skip-unused to skip this check.
  48. To remove this package: npm uninstall --save fs-extra
  49. gulp � NOTUSED? Still using gulp?
  50. Depcheck did not find code similar to require('gulp') or import from 'gulp'.
  51. Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
  52. Use --skip-unused to skip this check.
  53. To remove this package: npm uninstall --save gulp
  54. gulp-assetpaths UPDATE! Your local install is out of date. https://github.com/qwales1/gulp-assetpaths#readme
  55. npm install --save gulp-assetpaths@0.3.3 to go from 0.3.0 to 0.3.3
  56. gulp-cdn-replace MISSING! Not installed.
  57. gulp-clean-css MAJOR UP Major update available. https://github.com/scniro/gulp-clean-css#readme
  58. npm install --save gulp-clean-css@4.0.0 to go from 2.0.13 to 4.0.0
  59. gulp-contrib-copy MISSING! Not installed.
  60. gulp-cssbeautify MAJOR UP Major update available. https://github.com/jonkemp/gulp-cssbeautify#readme
  61. npm install --save gulp-cssbeautify@1.0.1 to go from 0.1.3 to 1.0.1
  62. gulp-csso MAJOR UP Major update available. https://github.com/ben-eb/gulp-csso
  63. npm install --save gulp-csso@3.0.1 to go from 2.0.0 to 3.0.1
  64. gulp-file-include MAJOR UP Major update available. https://github.com/coderhaoxin/gulp-file-include#readme
  65. npm install --save gulp-file-include@2.0.1 to go from 1.0.0 to 2.0.1
  66. gulp-imagemin MAJOR UP Major update available. https://github.com/sindresorhus/gulp-imagemin#readme
  67. npm install --save gulp-imagemin@5.0.3 to go from 3.1.1 to 5.0.3
  68. gulp-inline-source MAJOR UP Major update available. https://github.com/fmal/gulp-inline-source#readme
  69. npm install --save gulp-inline-source@4.0.0 to go from 2.1.0 to 4.0.0
  70. gulp-jshint MAJOR UP Major update available. http://github.com/spalger/gulp-jshint
  71. npm install --save gulp-jshint@2.1.0 to go from 1.12.0 to 2.1.0
  72. gulp-plumber UPDATE! Your local install is out of date. https://github.com/floatdrop/gulp-plumber
  73. npm install --save gulp-plumber@1.2.1 to go from 1.1.0 to 1.2.1
  74. gulp-replace MAJOR UP Major update available. https://github.com/lazd/gulp-replace#readme
  75. npm install --save gulp-replace@1.0.0 to go from 0.5.4 to 1.0.0
  76. gulp-rev MAJOR UP Major update available. https://github.com/sindresorhus/gulp-rev#readme
  77. npm install --save gulp-rev@9.0.0 to go from 7.1.2 to 9.0.0
  78. gulp-rev-collector UPDATE! Your local install is out of date. https://github.com/shonny-ua/gulp-rev-collector
  79. npm install --save gulp-rev-collector@1.3.1 to go from 1.1.1 to 1.3.1
  80. gulp-uglify MAJOR UP Major update available. https://github.com/terinjokes/gulp-uglify/
  81. npm install --save gulp-uglify@3.0.1 to go from 1.5.4 to 3.0.1
  82. imagemin-pngquant MAJOR UP Major update available. https://github.com/imagemin/imagemin-pngquant#readme
  83. npm install --save imagemin-pngquant@6.0.0 to go from 5.0.0 to 6.0.0
  84. NOTUSED? Still using imagemin-pngquant?
  85. Depcheck did not find code similar to require('imagemin-pngquant') or import from 'imagemin-pngquant'.
  86. Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
  87. Use --skip-unused to skip this check.
  88. To remove this package: npm uninstall --save imagemin-pngquant
  89. jshint-stylish � MAJOR UP Major update available. https://github.com/sindresorhus/jshint-stylish#readme
  90. npm install --save jshint-stylish@2.2.1 to go from 0.4.0 to 2.2.1
  91. � NOTUSED? Still using jshint-stylish?
  92. Depcheck did not find code similar to require('jshint-stylish') or import from 'jshint-stylish'.
  93. Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
  94. Use --skip-unused to skip this check.
  95. To remove this package: npm uninstall --save jshint-stylish
  96. load-grunt-tasks MISSING! Not installed.
  97. MAJOR UP Major update available. https://github.com/sindresorhus/load-grunt-tasks#readme
  98. npm install --save load-grunt-tasks@4.0.0 to go from 0.4.0 to 4.0.0
  99. NOTUSED? Still using load-grunt-tasks?
  100. Depcheck did not find code similar to require('load-grunt-tasks') or import from 'load-grunt-tasks'.
  101. Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
  102. Use --skip-unused to skip this check.
  103. To remove this package: npm uninstall --save load-grunt-tasks
  104. map-stream � NEW VER! NonSemver update available. http://github.com/dominictarr/map-stream
  105. npm install --save map-stream@0.0.7 to go from 0.0.6 to 0.0.7
  106. � NOTUSED? Still using map-stream?
  107. Depcheck did not find code similar to require('map-stream') or import from 'map-stream'.
  108. Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
  109. Use --skip-unused to skip this check.
  110. To remove this package: npm uninstall --save map-stream
  111. merge-stream NOTUSED? Still using merge-stream?
  112. Depcheck did not find code similar to require('merge-stream') or import from 'merge-stream'.
  113. Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
  114. Use --skip-unused to skip this check.
  115. To remove this package: npm uninstall --save merge-stream
  116. minimist � NOTUSED? Still using minimist?
  117. Depcheck did not find code similar to require('minimist') or import from 'minimist'.
  118. Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
  119. Use --skip-unused to skip this check.
  120. To remove this package: npm uninstall --save minimist
  121. request UPDATE! Your local install is out of date. https://github.com/request/request#readme
  122. npm install --save request@2.88.0 to go from 2.80.0 to 2.88.0
  123. NOTUSED? Still using request?
  124. Depcheck did not find code similar to require('request') or import from 'request'.
  125. Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
  126. Use --skip-unused to skip this check.
  127. To remove this package: npm uninstall --save request
  128. run-sequence � MAJOR UP Major update available. https://github.com/OverZealous/run-sequence
  129. npm install --save run-sequence@2.2.1 to go from 1.2.2 to 2.2.1
  130. � NOTUSED? Still using run-sequence?
  131. Depcheck did not find code similar to require('run-sequence') or import from 'run-sequence'.
  132. Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
  133. Use --skip-unused to skip this check.
  134. To remove this package: npm uninstall --save run-sequence
  135. time-grunt MISSING! Not installed.
  136. MAJOR UP Major update available. https://github.com/sindresorhus/time-grunt#readme
  137. npm install --save time-grunt@2.0.0 to go from 0.4.0 to 2.0.0
  138. NOTUSED? Still using time-grunt?
  139. Depcheck did not find code similar to require('time-grunt') or import from 'time-grunt'.
  140. Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
  141. Use --skip-unused to skip this check.
  142. To remove this package: npm uninstall --save time-grunt
  143. watch � NOTUSED? Still using watch?
  144. Depcheck did not find code similar to require('watch') or import from 'watch'.
  145. Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
  146. Use --skip-unused to skip this check.
  147. To remove this package: npm uninstall --save watch
  148. gulp-connect UPDATE! Your local install is out of date. https://github.com/avevlad/gulp-connect#readme
  149. npm install --save-dev gulp-connect@5.6.1 to go from 5.0.0 to 5.6.1
  150. gulp-watch MAJOR UP Major update available. https://github.com/floatdrop/gulp-watch#readme
  151. npm install --save-dev gulp-watch@5.0.1 to go from 4.3.11 to 5.0.1
  152. gulp-zip UPDATE! Your local install is out of date. https://github.com/sindresorhus/gulp-zip#readme
  153. npm install --save-dev gulp-zip@4.2.0 to go from 4.0.0 to 4.2.0
  154. moment UPDATE! Your local install is out of date. http://momentjs.com
  155. npm install --save-dev moment@2.22.2 to go from 2.18.1 to 2.22.2
  156. NOTUSED? Still using moment?
  157. Depcheck did not find code similar to require('moment') or import from 'moment'.
  158. Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
  159. Use --skip-unused to skip this check.
  160. To remove this package: npm uninstall --save-dev moment
  161. shelljs � NEW VER! NonSemver update available. http://github.com/shelljs/shelljs
  162. npm install --save-dev shelljs@0.8.3 to go from 0.7.8 to 0.8.3
  163. � NOTUSED? Still using shelljs?
  164. Depcheck did not find code similar to require('shelljs') or import from 'shelljs'.
  165. Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
  166. Use --skip-unused to skip this check.
  167. To remove this package: npm uninstall --save-dev shelljs
  168. time-stamp UPDATE! Your local install is out of date. https://github.com/jonschlinkert/time-stamp
  169. npm install --save-dev time-stamp@2.2.0 to go from 2.0.0 to 2.2.0
  170. NOTUSED? Still using time-stamp?
  171. Depcheck did not find code similar to require('time-stamp') or import from 'time-stamp'.
  172. Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
  173. Use --skip-unused to skip this check.
  174. To remove this package: npm uninstall --save-dev time-stamp
  175. Use npm-check -u for interactive update.
检测选择需要更新的包

命令: npm-check -u,如果只更新全局的,加上-g,即npm-check -u -g

使用空格键进行选择或取消

  1. D:\project\test\trunk>npm-check -u
  2. ? Choose which packages to update. (Press <space> to select)
  3. Missing. You probably want these.
  4. >( ) gulp-cdn-replace missing 0.6.0 https://github.com/JiangJie/gulp-cdn-replace
  5. ( ) gulp-contrib-copy missing 0.1.3 https://github.com/goel4ever/gulp-contrib-copy#readm
  6. Minor Update New backwards-compatible features.
  7. ( ) body-parser 1.17.1 1.18.3 https://github.com/expressjs/body-parser#readme
  8. ( ) colors 1.1.2 1.3.2 https://github.com/Marak/colors.js
  9. ( ) express 4.15.2 4.16.4 http://expressjs.com/
  10. ( ) gulp-plumber 1.1.0 1.2.1 https://github.com/floatdrop/gulp-plumber
  11. ( ) gulp-rev-collector 1.1.1 1.3.1 https://github.com/shonny-ua/gulp-rev-collector
  12. ( ) request 2.80.0 2.88.0 https://github.com/request/request#readme
  13. ( ) gulp-connect devDep 5.0.0 5.6.1 https://github.com/avevlad/gulp-connect#readme
  14. ( ) gulp-zip devDep 4.0.0 4.2.0 https://github.com/sindresorhus/gulp-zip#readme
  15. ( ) moment devDep 2.18.1 2.22.2 http://momentjs.com
  16. ( ) time-stamp devDep 2.0.0 2.2.0 https://github.com/jonschlinkert/time-stamp
  1. D:\project\test\trunk>npm-check -u
  2. ? Choose which packages to update. (Press <space> to select)
  3. Missing. You probably want these.
  4. >( ) gulp-cdn-replace missing 0.6.0 https://github.com/JiangJie/gulp-cdn-replace
  5. ( ) gulp-contrib-copy missing 0.1.3 https://github.com/goel4ever/gulp-contrib-copy#readme
  6. Minor Update New backwards-compatible features.
  7. ( ) body-parser 1.17.1 1.18.3 https://github.com/expressjs/body-parser#readme
  8. ( ) colors 1.1.2 1.3.2 https://github.com/Marak/colors.js
  9. ( ) express 4.15.2 4.16.4 http://expressjs.com/
  10. ( ) gulp-plumber 1.1.0 1.2.1 https://github.com/floatdrop/gulp-plumber
  11. ( ) gulp-rev-collector 1.1.1 1.3.1 https://github.com/shonny-ua/gulp-rev-collector
  12. ( ) request 2.80.0 2.88.0 https://github.com/request/request#readme
  13. ( ) gulp-connect devDep 5.0.0 5.6.1 https://github.com/avevlad/gulp-connect#readme
  14. ( ) gulp-zip devDep 4.0.0 4.2.0 https://github.com/sindresorhus/gulp-zip#readme
  15. ( ) moment devDep 2.18.1 2.22.2 http://momentjs.com
  16. ( ) time-stamp devDep 2.0.0 2.2.0 https://github.com/jonschlinkert/time-stamp
  17. Major Update Potentially breaking API changes. Use caution.
  18. ( ) dateformat 1.0.12 3.0.3 https://github.com/felixge/node-dateformat
  19. ( ) del 1.2.1 3.0.0 https://github.com/sindresorhus/del#readme
  20. ( ) fs-extra 1.0.0 7.0.1 https://github.com/jprichardson/node-fs-extra
  21. ( ) gulp-clean-css 2.0.13 4.0.0 https://github.com/scniro/gulp-clean-css#readme
  22. ( ) gulp-cssbeautify 0.1.3 1.0.1 https://github.com/jonkemp/gulp-cssbeautify#readme
  23. ( ) gulp-csso 2.0.0 3.0.1 https://github.com/ben-eb/gulp-csso
  24. ( ) gulp-file-include 1.0.0 2.0.1 https://github.com/coderhaoxin/gulp-file-include#readme
  25. ( ) gulp-imagemin 3.1.1 5.0.3 https://github.com/sindresorhus/gulp-imagemin#readme
  26. ( ) gulp-inline-source 2.1.0 4.0.0 https://github.com/fmal/gulp-inline-source#readme
  27. ( ) gulp-jshint 1.12.0 2.1.0 http://github.com/spalger/gulp-jshint
  28. ( ) gulp-replace 0.5.4 1.0.0 https://github.com/lazd/gulp-replace#readme
  29. ( ) gulp-rev 7.1.2 9.0.0 https://github.com/sindresorhus/gulp-rev#readme
  30. ( ) gulp-uglify 1.5.4 3.0.1 https://github.com/terinjokes/gulp-uglify/
  31. ( ) imagemin-pngquant 5.0.0 6.0.0 https://github.com/imagemin/imagemin-pngquant#readme
  32. ( ) jshint-stylish 0.4.0 2.2.1 https://github.com/sindresorhus/jshint-stylish#readme
  33. ( ) load-grunt-tasks missing 0.4.0 4.0.0 https://github.com/sindresorhus/load-grunt-tasks#readme
  34. ( ) run-sequence 1.2.2 2.2.1 https://github.com/OverZealous/run-sequence
  35. ( ) time-grunt missing 0.4.0 2.0.0 https://github.com/sindresorhus/time-grunt#readme
  36. ( ) gulp-watch devDep 4.3.11 5.0.1 https://github.com/floatdrop/gulp-watch#readme
  37. Non-Semver Versions less than 1.0.0, caution.
  38. ( ) gulp-assetpaths 0.3.0 0.3.3 https://github.com/qwales1/gulp-assetpaths#readme
  39. ( ) map-stream 0.0.6 0.0.7 http://github.com/dominictarr/map-stream
  40. ( ) shelljs devDep 0.7.8 0.8.3 http://github.com/shelljs/shelljs
  41. Space to select. Enter to start upgrading. Control-C to cancel.
版权声明:本站文章除特别声明外,均采用署名-非商业性使用-禁止演绎 4.0 国际 许可协议,如需转载,请注明出处

评论

  •  
  • 批量转换LF和CRLF的小技巧

    做跨平台开发移植的时候,最常见的问题就是不同操作系统的换行不同(例如,Windows 上是 CRLF,而 Linux 上是 LF,MacOS 以前是 CR,现在也是 LF),如果不注意的话,可能会导致编译的时候报诡异的错误,虽然说有些优秀的文本工具(notepad++, vscode 等)可以自动转换,但是它们都没有提供批量转换的方法,所以一旦遇到有成百上千个的文件需要转换,那么一个个手动去转明显效率低下。虽然网上提到批量转换的文章很多,但是感觉都没有介绍清楚,可能大神们都觉得太简单了吧。。。为了同学们能够和我一样少走弯路,我就把我的转换过程详细记录下来。

    发布:2019-05-24 阅读(227)

  • 利用react-hot-loader实现局部更新

    React Hot Loader是一个插件,允许React组件在不丢失状态的情况下进行实时重新加载。它适用于Webpack和其他支持热模块替换(HMR)和Babel插件的捆绑器

    发布:2018-12-27 阅读(446)

  • npm ERR! Cannot read property 'match' of undefined

    npm ERR! Cannot read property &amp;amp;#39;match&amp;amp;#39; of undefined

    发布:2018-12-21 阅读(520)

  • 运行npm run dev,vuejs二级路由,刷新页面静态资源404(路径不对)

    npm run dev模式下,webpack4+vue2项目下,类似'/user/login'二级路由,刷新时静态资源路径不对,静态资源返回404

    发布:2018-10-23 阅读(586)

  • 2018 年了,你还是只会 npm install 吗?

    nodejs 社区乃至 Web 前端工程化领域发展到今天,作为 node 自带的包管理工具的 npm 已经成为每个前端开发者必备的工具。但是现实状况是,我们很多人对这个nodejs基础设施的使用和了解还停留在: 会用 npm install 这里(一言不合就删除整个 node_modules 目录然后重新 install 这种事你没做过吗?)

    发布:2018-04-27 来源:rianma

  • 在npmjs上发布自己的模块

    如何发布一个npm模块到npmjs.com

    发布:2018-03-29 阅读(397)

  • 利用nrm快速切换npm源代理

    nrm是一个npm源管理工具,利用它我们可以快速切换npm源,利用nrm还可以测试哪个源最快。如果哪个npm依赖安装失败,不防切换一下npm源试试

    发布:2017-05-22 阅读(417)

  • npm模块管理器

    npm 教程

    发布:2016-10-27 来源:阮一峰