全局安装
npm install -g npm-check
直接输入npm-check,然后回车
D:\project\test\trunk>npm-checkbody-parser � UPDATE! Your local install is out of date. https://github.com/expressjs/body-parser#readmenpm install --save body-parser@1.18.3 to go from 1.17.1 to 1.18.3� NOTUSED? Still using body-parser?Depcheck did not find code similar to require('body-parser') or import from 'body-parser'.Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.Use --skip-unused to skip this check.To remove this package: npm uninstall --save body-parsercolors � UPDATE! Your local install is out of date. https://github.com/Marak/colors.jsnpm install --save colors@1.3.2 to go from 1.1.2 to 1.3.2� NOTUSED? Still using colors?Depcheck did not find code similar to require('colors') or import from 'colors'.Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.Use --skip-unused to skip this check.To remove this package: npm uninstall --save colorscookie-parser � NOTUSED? Still using cookie-parser?Depcheck did not find code similar to require('cookie-parser') or import from 'cookie-parser'.Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.Use --skip-unused to skip this check.To remove this package: npm uninstall --save cookie-parserdateformat � MAJOR UP Major update available. https://github.com/felixge/node-dateformatnpm install --save dateformat@3.0.3 to go from 1.0.12 to 3.0.3� NOTUSED? Still using dateformat?Depcheck did not find code similar to require('dateformat') or import from 'dateformat'.Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.Use --skip-unused to skip this check.To remove this package: npm uninstall --save dateformatdel � MAJOR UP Major update available. https://github.com/sindresorhus/del#readmenpm install --save del@3.0.0 to go from 1.2.1 to 3.0.0� NOTUSED? Still using del?Depcheck did not find code similar to require('del') or import from 'del'.Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.Use --skip-unused to skip this check.To remove this package: npm uninstall --save delexpress � UPDATE! Your local install is out of date. http://expressjs.com/npm install --save express@4.16.4 to go from 4.15.2 to 4.16.4� NOTUSED? Still using express?Depcheck did not find code similar to require('express') or import from 'express'.Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.Use --skip-unused to skip this check.To remove this package: npm uninstall --save expressfs-extra � MAJOR UP Major update available. https://github.com/jprichardson/node-fs-extranpm install --save fs-extra@7.0.1 to go from 1.0.0 to 7.0.1� NOTUSED? Still using fs-extra?Depcheck did not find code similar to require('fs-extra') or import from 'fs-extra'.Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.Use --skip-unused to skip this check.To remove this package: npm uninstall --save fs-extragulp � NOTUSED? Still using gulp?Depcheck did not find code similar to require('gulp') or import from 'gulp'.Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.Use --skip-unused to skip this check.To remove this package: npm uninstall --save gulpgulp-assetpaths � UPDATE! Your local install is out of date. https://github.com/qwales1/gulp-assetpaths#readmenpm install --save gulp-assetpaths@0.3.3 to go from 0.3.0 to 0.3.3gulp-cdn-replace � MISSING! Not installed.gulp-clean-css � MAJOR UP Major update available. https://github.com/scniro/gulp-clean-css#readmenpm install --save gulp-clean-css@4.0.0 to go from 2.0.13 to 4.0.0gulp-contrib-copy � MISSING! Not installed.gulp-cssbeautify � MAJOR UP Major update available. https://github.com/jonkemp/gulp-cssbeautify#readmenpm install --save gulp-cssbeautify@1.0.1 to go from 0.1.3 to 1.0.1gulp-csso � MAJOR UP Major update available. https://github.com/ben-eb/gulp-cssonpm install --save gulp-csso@3.0.1 to go from 2.0.0 to 3.0.1gulp-file-include � MAJOR UP Major update available. https://github.com/coderhaoxin/gulp-file-include#readmenpm install --save gulp-file-include@2.0.1 to go from 1.0.0 to 2.0.1gulp-imagemin � MAJOR UP Major update available. https://github.com/sindresorhus/gulp-imagemin#readmenpm install --save gulp-imagemin@5.0.3 to go from 3.1.1 to 5.0.3gulp-inline-source � MAJOR UP Major update available. https://github.com/fmal/gulp-inline-source#readmenpm install --save gulp-inline-source@4.0.0 to go from 2.1.0 to 4.0.0gulp-jshint � MAJOR UP Major update available. http://github.com/spalger/gulp-jshintnpm install --save gulp-jshint@2.1.0 to go from 1.12.0 to 2.1.0gulp-plumber � UPDATE! Your local install is out of date. https://github.com/floatdrop/gulp-plumbernpm install --save gulp-plumber@1.2.1 to go from 1.1.0 to 1.2.1gulp-replace � MAJOR UP Major update available. https://github.com/lazd/gulp-replace#readmenpm install --save gulp-replace@1.0.0 to go from 0.5.4 to 1.0.0gulp-rev � MAJOR UP Major update available. https://github.com/sindresorhus/gulp-rev#readmenpm install --save gulp-rev@9.0.0 to go from 7.1.2 to 9.0.0gulp-rev-collector � UPDATE! Your local install is out of date. https://github.com/shonny-ua/gulp-rev-collectornpm install --save gulp-rev-collector@1.3.1 to go from 1.1.1 to 1.3.1gulp-uglify � MAJOR UP Major update available. https://github.com/terinjokes/gulp-uglify/npm install --save gulp-uglify@3.0.1 to go from 1.5.4 to 3.0.1imagemin-pngquant � MAJOR UP Major update available. https://github.com/imagemin/imagemin-pngquant#readmenpm install --save imagemin-pngquant@6.0.0 to go from 5.0.0 to 6.0.0� NOTUSED? Still using imagemin-pngquant?Depcheck did not find code similar to require('imagemin-pngquant') or import from 'imagemin-pngquant'.Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.Use --skip-unused to skip this check.To remove this package: npm uninstall --save imagemin-pngquantjshint-stylish � MAJOR UP Major update available. https://github.com/sindresorhus/jshint-stylish#readmenpm install --save jshint-stylish@2.2.1 to go from 0.4.0 to 2.2.1� NOTUSED? Still using jshint-stylish?Depcheck did not find code similar to require('jshint-stylish') or import from 'jshint-stylish'.Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.Use --skip-unused to skip this check.To remove this package: npm uninstall --save jshint-stylishload-grunt-tasks � MISSING! Not installed.� MAJOR UP Major update available. https://github.com/sindresorhus/load-grunt-tasks#readmenpm install --save load-grunt-tasks@4.0.0 to go from 0.4.0 to 4.0.0� NOTUSED? Still using load-grunt-tasks?Depcheck did not find code similar to require('load-grunt-tasks') or import from 'load-grunt-tasks'.Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.Use --skip-unused to skip this check.To remove this package: npm uninstall --save load-grunt-tasksmap-stream � NEW VER! NonSemver update available. http://github.com/dominictarr/map-streamnpm install --save map-stream@0.0.7 to go from 0.0.6 to 0.0.7� NOTUSED? Still using map-stream?Depcheck did not find code similar to require('map-stream') or import from 'map-stream'.Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.Use --skip-unused to skip this check.To remove this package: npm uninstall --save map-streammerge-stream � NOTUSED? Still using merge-stream?Depcheck did not find code similar to require('merge-stream') or import from 'merge-stream'.Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.Use --skip-unused to skip this check.To remove this package: npm uninstall --save merge-streamminimist � NOTUSED? Still using minimist?Depcheck did not find code similar to require('minimist') or import from 'minimist'.Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.Use --skip-unused to skip this check.To remove this package: npm uninstall --save minimistrequest � UPDATE! Your local install is out of date. https://github.com/request/request#readmenpm install --save request@2.88.0 to go from 2.80.0 to 2.88.0� NOTUSED? Still using request?Depcheck did not find code similar to require('request') or import from 'request'.Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.Use --skip-unused to skip this check.To remove this package: npm uninstall --save requestrun-sequence � MAJOR UP Major update available. https://github.com/OverZealous/run-sequencenpm install --save run-sequence@2.2.1 to go from 1.2.2 to 2.2.1� NOTUSED? Still using run-sequence?Depcheck did not find code similar to require('run-sequence') or import from 'run-sequence'.Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.Use --skip-unused to skip this check.To remove this package: npm uninstall --save run-sequencetime-grunt � MISSING! Not installed.� MAJOR UP Major update available. https://github.com/sindresorhus/time-grunt#readmenpm install --save time-grunt@2.0.0 to go from 0.4.0 to 2.0.0� NOTUSED? Still using time-grunt?Depcheck did not find code similar to require('time-grunt') or import from 'time-grunt'.Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.Use --skip-unused to skip this check.To remove this package: npm uninstall --save time-gruntwatch � NOTUSED? Still using watch?Depcheck did not find code similar to require('watch') or import from 'watch'.Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.Use --skip-unused to skip this check.To remove this package: npm uninstall --save watchgulp-connect � UPDATE! Your local install is out of date. https://github.com/avevlad/gulp-connect#readmenpm install --save-dev gulp-connect@5.6.1 to go from 5.0.0 to 5.6.1gulp-watch � MAJOR UP Major update available. https://github.com/floatdrop/gulp-watch#readmenpm install --save-dev gulp-watch@5.0.1 to go from 4.3.11 to 5.0.1gulp-zip � UPDATE! Your local install is out of date. https://github.com/sindresorhus/gulp-zip#readmenpm install --save-dev gulp-zip@4.2.0 to go from 4.0.0 to 4.2.0moment � UPDATE! Your local install is out of date. http://momentjs.comnpm install --save-dev moment@2.22.2 to go from 2.18.1 to 2.22.2� NOTUSED? Still using moment?Depcheck did not find code similar to require('moment') or import from 'moment'.Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.Use --skip-unused to skip this check.To remove this package: npm uninstall --save-dev momentshelljs � NEW VER! NonSemver update available. http://github.com/shelljs/shelljsnpm install --save-dev shelljs@0.8.3 to go from 0.7.8 to 0.8.3� NOTUSED? Still using shelljs?Depcheck did not find code similar to require('shelljs') or import from 'shelljs'.Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.Use --skip-unused to skip this check.To remove this package: npm uninstall --save-dev shelljstime-stamp � UPDATE! Your local install is out of date. https://github.com/jonschlinkert/time-stampnpm install --save-dev time-stamp@2.2.0 to go from 2.0.0 to 2.2.0� NOTUSED? Still using time-stamp?Depcheck did not find code similar to require('time-stamp') or import from 'time-stamp'.Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.Use --skip-unused to skip this check.To remove this package: npm uninstall --save-dev time-stampUse npm-check -u for interactive update.
命令: npm-check -u,如果只更新全局的,加上-g,即npm-check -u -g
使用空格键进行选择或取消
D:\project\test\trunk>npm-check -u? Choose which packages to update. (Press <space> to select)Missing. You probably want these.>( ) gulp-cdn-replace missing 0.6.0 https://github.com/JiangJie/gulp-cdn-replace( ) gulp-contrib-copy missing 0.1.3 https://github.com/goel4ever/gulp-contrib-copy#readmMinor Update New backwards-compatible features.( ) body-parser 1.17.1 ❯ 1.18.3 https://github.com/expressjs/body-parser#readme( ) colors 1.1.2 ❯ 1.3.2 https://github.com/Marak/colors.js( ) express 4.15.2 ❯ 4.16.4 http://expressjs.com/( ) gulp-plumber 1.1.0 ❯ 1.2.1 https://github.com/floatdrop/gulp-plumber( ) gulp-rev-collector 1.1.1 ❯ 1.3.1 https://github.com/shonny-ua/gulp-rev-collector( ) request 2.80.0 ❯ 2.88.0 https://github.com/request/request#readme( ) gulp-connect devDep 5.0.0 ❯ 5.6.1 https://github.com/avevlad/gulp-connect#readme( ) gulp-zip devDep 4.0.0 ❯ 4.2.0 https://github.com/sindresorhus/gulp-zip#readme( ) moment devDep 2.18.1 ❯ 2.22.2 http://momentjs.com( ) time-stamp devDep 2.0.0 ❯ 2.2.0 https://github.com/jonschlinkert/time-stamp
D:\project\test\trunk>npm-check -u? Choose which packages to update. (Press <space> to select)Missing. You probably want these.>( ) gulp-cdn-replace missing 0.6.0 https://github.com/JiangJie/gulp-cdn-replace( ) gulp-contrib-copy missing 0.1.3 https://github.com/goel4ever/gulp-contrib-copy#readmeMinor Update New backwards-compatible features.( ) body-parser 1.17.1 ❯ 1.18.3 https://github.com/expressjs/body-parser#readme( ) colors 1.1.2 ❯ 1.3.2 https://github.com/Marak/colors.js( ) express 4.15.2 ❯ 4.16.4 http://expressjs.com/( ) gulp-plumber 1.1.0 ❯ 1.2.1 https://github.com/floatdrop/gulp-plumber( ) gulp-rev-collector 1.1.1 ❯ 1.3.1 https://github.com/shonny-ua/gulp-rev-collector( ) request 2.80.0 ❯ 2.88.0 https://github.com/request/request#readme( ) gulp-connect devDep 5.0.0 ❯ 5.6.1 https://github.com/avevlad/gulp-connect#readme( ) gulp-zip devDep 4.0.0 ❯ 4.2.0 https://github.com/sindresorhus/gulp-zip#readme( ) moment devDep 2.18.1 ❯ 2.22.2 http://momentjs.com( ) time-stamp devDep 2.0.0 ❯ 2.2.0 https://github.com/jonschlinkert/time-stampMajor Update Potentially breaking API changes. Use caution.( ) dateformat 1.0.12 ❯ 3.0.3 https://github.com/felixge/node-dateformat( ) del 1.2.1 ❯ 3.0.0 https://github.com/sindresorhus/del#readme( ) fs-extra 1.0.0 ❯ 7.0.1 https://github.com/jprichardson/node-fs-extra( ) gulp-clean-css 2.0.13 ❯ 4.0.0 https://github.com/scniro/gulp-clean-css#readme( ) gulp-cssbeautify 0.1.3 ❯ 1.0.1 https://github.com/jonkemp/gulp-cssbeautify#readme( ) gulp-csso 2.0.0 ❯ 3.0.1 https://github.com/ben-eb/gulp-csso( ) gulp-file-include 1.0.0 ❯ 2.0.1 https://github.com/coderhaoxin/gulp-file-include#readme( ) gulp-imagemin 3.1.1 ❯ 5.0.3 https://github.com/sindresorhus/gulp-imagemin#readme( ) gulp-inline-source 2.1.0 ❯ 4.0.0 https://github.com/fmal/gulp-inline-source#readme( ) gulp-jshint 1.12.0 ❯ 2.1.0 http://github.com/spalger/gulp-jshint( ) gulp-replace 0.5.4 ❯ 1.0.0 https://github.com/lazd/gulp-replace#readme( ) gulp-rev 7.1.2 ❯ 9.0.0 https://github.com/sindresorhus/gulp-rev#readme( ) gulp-uglify 1.5.4 ❯ 3.0.1 https://github.com/terinjokes/gulp-uglify/( ) imagemin-pngquant 5.0.0 ❯ 6.0.0 https://github.com/imagemin/imagemin-pngquant#readme( ) jshint-stylish 0.4.0 ❯ 2.2.1 https://github.com/sindresorhus/jshint-stylish#readme( ) load-grunt-tasks missing 0.4.0 ❯ 4.0.0 https://github.com/sindresorhus/load-grunt-tasks#readme( ) run-sequence 1.2.2 ❯ 2.2.1 https://github.com/OverZealous/run-sequence( ) time-grunt missing 0.4.0 ❯ 2.0.0 https://github.com/sindresorhus/time-grunt#readme( ) gulp-watch devDep 4.3.11 ❯ 5.0.1 https://github.com/floatdrop/gulp-watch#readmeNon-Semver Versions less than 1.0.0, caution.( ) gulp-assetpaths 0.3.0 ❯ 0.3.3 https://github.com/qwales1/gulp-assetpaths#readme( ) map-stream 0.0.6 ❯ 0.0.7 http://github.com/dominictarr/map-stream( ) shelljs devDep 0.7.8 ❯ 0.8.3 http://github.com/shelljs/shelljsSpace to select. Enter to start upgrading. Control-C to cancel.
公司新入手的Macbook m1最新款,使用NPM RUN DEV,你都可以去喝杯咖啡再回来,再看还在 build,怎么解决?
internal/validators.js:124 throw new ERR_INVALID_ARG_TYPE(name, ‘string‘, value)
for循环里使用await
gulp4构建报错: Error: EPERM: operation not permitted, mkdir
如何在VUE项目中添加stylelint,检查css,scss,less的语法问题,保证团队代码的规范统一
linux下如何安装nodejs
egg-validate默认是英文提示,如何改成中文?
传统的会话认证使用的是session+cookie,前后端分离的项目,更多使用的是token。本文主要实现的token,基于eggjs+redis+jwt+cookie
RSA加密的玩法
在package.json里设置了NODE_ENV在代码中判断不了
The 'typeof' Babel helper is used more than once in your code. It's strongly recommended that you use the "external-helpers" plugin or the "es2015-rollup" preset. See https://github.com/rollup/rollup-plugin-babel#configuring-babel for more information
Unknown plugin &quot;external-helpers&quot; specified in
项目从svn迁到git了,遇到的一个坑:前端工程化打包,会给每个js\css\img文件名添加一个hash值,svn下这个一点问题没有,迁到git后,hash值在不同的电脑上总是不一样。那是什么原因呢?也许你还会发现,有些本来没有修改过的文件,在"git status"时也提示有修改,需要提交。
nodejs应用如果在服务端使用npm包转换jpg,png,gif为webp格式,大大缩小图片的大小
nodejs从8.15.0版本升级到10.15.0版本,gulp打包报错~gulp[2092]: src\node_contextify.cc:633: Assertion `args[1]->IsString()' failed.
npm ERR! Cannot read property &amp;#39;match&amp;#39; of undefined
ReferenceError: internalBinding is not defined
默认情况下,webpack-dev-server只可使用localhost或127.0.0.1访问,用局域网IP访问不了
mvvm项目总会有一些静态文件,如静态合同、协议等等,如何通过webpack来原样复制?
利用http-server搭建静态服务器,即浏览html文件用的~
webpack最小化打包lodash插件,如果全量打包的话,lodash会非常大
vue2.0 项目,利用webpack搭建mock api服务,用于本地调试数据
webpack打包,报"WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB)",记录一下
webpack 是一个现代 JavaScript 应用程序的静态模块打包器(static module bundler)。在 webpack 处理应用程序时,它会在内部创建一个依赖图(dependency graph),用于映射到项目需要的每个模块,然后将所有这些依赖生成到一个或多个bundle
网站是基于eggjs写的,某天突然报spawn tail ENOENT错误,难道'child_process'调用spawn问题?
用npm-check批量更新依赖,检测package.json文件,检测到可更新的文件,然后批量更新
nodejs 社区乃至 Web 前端工程化领域发展到今天,作为 node 自带的包管理工具的 npm 已经成为每个前端开发者必备的工具。但是现实状况是,我们很多人对这个nodejs基础设施的使用和了解还停留在: 会用 npm install 这里(一言不合就删除整个 node_modules 目录然后重新 install 这种事你没做过吗?)
如何发布一个npm模块到npmjs.com
nrm是一个npm源管理工具,利用它我们可以快速切换npm源,利用nrm还可以测试哪个源最快。如果哪个npm依赖安装失败,不防切换一下npm源试试
npm 教程
阮一峰老师的package.json文件详解