NPM提示版本依赖报错:No matching version found for

 问题描述:

升级了VS2015到VS2017,发现gyp竟然不支持(瀑布汗),找方法双开了,没问题后,执行npm install竟然报错,错误如下:

。。。

5666 silly saveTree     `-- yargs-parser@7.0.0
5666 silly saveTree       `-- camelcase@4.1.0
5667 warn optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules\chokidar\node_modules\fsevents):
5668 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.11: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
5669 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS:    darwin
5669 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch:  any
5669 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS:   win32
5669 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
5670 verbose type range
5671 verbose stack mime-db: No matching version found for mime-db@>= 1.43.0 < 2.
5671 verbose stack     at pickManifest (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-pick-manifest\index.js:122:13)
5671 verbose stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\pacote\lib\fetchers\registry\manifest.js:24:14
5671 verbose stack     at tryCatcher (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\util.js:16:23)
5671 verbose stack     at Promise._settlePromiseFromHandler (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:517:31)
5671 verbose stack     at Promise._settlePromise (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:574:18)
5671 verbose stack     at Promise._settlePromiseCtx (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:611:10)
5671 verbose stack     at _drainQueueStep (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\async.js:142:12)
5671 verbose stack     at _drainQueue (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\async.js:131:9)
5671 verbose stack     at Async._drainQueues (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\async.js:147:5)
5671 verbose stack     at Immediate.Async.drainQueues [as _onImmediate] (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\async.js:17:14)
5671 verbose stack     at processImmediate (internal/timers.js:439:21)
5672 verbose cwd D:\Git\webfront
5673 verbose Windows_NT 10.0.18363
5674 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "i"
5675 verbose node v12.13.1
5676 verbose npm  v6.12.1
5677 error code ETARGET
5678 error notarget No matching version found for mime-db@>= 1.43.0 < 2.
5679 error notarget In most cases you or one of your dependencies are requesting
5679 error notarget a package version that doesn't exist.
5679 error notarget
5679 error notarget It was specified as a dependency of 'compressible'
5680 verbose exit [ 1, true ]

问题深入,看到是依赖版本问题,网上查了版本确实发布了mime-db1.43.0最新版,改了package.json后还是报错

问题解决,后来发现是搭建的npm私有库缓存了老版本的mime-db,以为最新版是1.42.0,清理缓存后,重新刷新库,成功,解决,此处记录以备后用。

NPM提示版本依赖报错:No matching version found forNPM提示版本依赖报错:No matching version found for guowei1003 发布了1 篇原创文章 · 获赞 0 · 访问量 24 私信 关注
上一篇:pycharm中django代码objects无代码提示的解决方案


下一篇:03:Django(路由层部分)