我运行npm install命令,但显示不赞成使用,我该如何解决?

时间:2019-11-28 03:51:19

标签: npm

enter image description here
    cnpm我     / [32/36]安装不支持babel-loader@7.1.5的function-bind@^1.1.1平台› webpack@3.12.0› watchpack@1.6.0› chokidar@2.1.8› fsevents@^1.2.7需要软件包os(darwin)与您的平台不兼容(win32)     [fsevents@^1.2.7]可选安装错误:软件包要求os(darwin)与您的平台(win32)不兼容     √安装了36个软件包     √链接了715最新版本     [1/3] scripts.postinstall babel-loader@7.1.5› webpack@3.12.0› uglifyjs-webpack-plugin@^0.4.6运行“ node lib / post_install.js”,根目录:“ D:\ Users \管理员\文档\电商\在线商店\在线商店\ node_modules \ _uglifyjs-webpack-plugin@0.4。     6 @ uglifyjs-webpack-plugin“     [1/3] scripts.postinstall babel-loader@7.1.5› webpack@3.12.0› uglifyjs-webpack-plugin@^0.4.6在218毫秒内完成     [2/3] scripts.postinstall babel-core@6.26.3› babel-register@6.26.0› core-js@^2.5.0运行“ node postinstall || echo \” ignore \“”,根目录:“ D :\ Users \ admin \ Documents \电商\ online-store \ online-store \ node_modules \ _core-js @ 2.6.10 @ core-js“     感谢您使用core-js(https://github.com/zloirock/core-js)来填充JavaScript标准库!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

[2/3] scripts.postinstall babel-core@6.26.3 › babel-register@6.26.0 › core-js@^2.5.0 finished in 230ms
[3/3] scripts.install node-sass@^4.13.0 run "node scripts/install.js", root: "D:\\Users\\admin\\Documents\\电商\\online-
store\\online-store\\node_modules\\_node-sass@4.13.0@node-sass"
Cached binary found at C:\Users\admin\.npminstall_tarball\node-sass\4.13.0\win32-x64-57_binding.node
[3/3] scripts.install node-sass@^4.13.0 finished in 601ms
[3/3] scripts.postinstall node-sass@^4.13.0 run "node scripts/build.js", root: "D:\\Users\\admin\\Documents\\电商\\onlin
e-store\\online-store\\node_modules\\_node-sass@4.13.0@node-sass"
Binary found at D:\Users\admin\Documents\电商\online-store\online-store\node_modules\_node-sass@4.13.0@node-sass\vendor\
win32-x64-57\binding.node
Testing binary
Binary is fine
[3/3] scripts.postinstall node-sass@^4.13.0 finished in 404ms
√ Run 3 scripts
deprecate css-loader@0.28.11 › cssnano@3.10.0 › autoprefixer@6.7.7 › browserslist@^1.7.6 Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
deprecate babel-core@6.26.3 › babel-register@6.26.0 › core-js@^2.5.0 core-js@<3.0 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
deprecate babel-loader@7.1.5 › webpack@3.12.0 › watchpack@1.6.0 › chokidar@2.1.8 › fsevents@^1.2.7 One of your dependencies needs to upgrade to fsevents v2: 1) Proper nodejs v10+ support 2) No more fetching binaries from AWS, smaller package size
Recently updated (since 2019-11-21): 9 packages (detail see file D:\Users\admin\Documents\电商\online-store\online-store
\node_modules\.recently_updates.txt)
√ All packages installed (850 packages installed from npm registry, used 8s(network 6s), speed 296.59kB/s, json 751(1.7 5MB), tarball 0B)

1 个答案:

答案 0 :(得分:0)

分别从您的屏幕快照,browsersList,core-js和fsevents中删除了3个不推荐使用的软件包。尝试将babel-loader,babel-core和css-loader等软件包的版本升级到更高版本。您可以在Google上搜索“ babel-loader npm”,然后获得适当的更高版本。不要升级到比您的版本高得多的版本,以免造成更多麻烦。另外,警告可能不会真正影响开发。