2021-05-10 乐帮网
webpack
在VS Code的 webpack,使用npm list 查看所有的包信息时遇到以下错误:
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/cli@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/preset-env@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0, required by @babel/helper-compilation-targets@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-proposal-async-generator-functions@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-proposal-class-properties@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-proposal-dynamic-import@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-proposal-json-strings@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-proposal-nullish-coalescing-operator@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-proposal-numeric-separator@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-proposal-object-rest-spread@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-proposal-optional-catch-binding@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-proposal-optional-chaining@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-proposal-private-methods@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-proposal-unicode-property-regex@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-syntax-async-generators@7.8.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-syntax-class-properties@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-syntax-dynamic-import@7.8.3
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-syntax-json-strings@7.8.3
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-syntax-nullish-coalescing-operator@7.8.3
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-syntax-numeric-separator@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-syntax-object-rest-spread@7.8.3
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-syntax-optional-catch-binding@7.8.3
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-syntax-optional-chaining@7.8.3
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-syntax-top-level-await@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-transform-arrow-functions@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-transform-async-to-generator@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-transform-block-scoped-functions@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-transform-block-scoping@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-transform-classes@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-transform-computed-properties@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-transform-destructuring@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-transform-dotall-regex@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-transform-duplicate-keys@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-transform-exponentiation-operator@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-transform-for-of@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-transform-function-name@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-transform-literals@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-transform-member-expression-literals@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-transform-modules-amd@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-transform-modules-commonjs@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-transform-modules-systemjs@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-transform-modules-umd@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0, required by @babel/plugin-transform-named-capturing-groups-regex@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-transform-new-target@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-transform-object-super@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-transform-parameters@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-transform-property-literals@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-transform-regenerator@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-transform-shorthand-properties@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-transform-spread@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-transform-sticky-regex@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-transform-template-literals@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-transform-typeof-symbol@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-transform-unicode-escapes@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-transform-unicode-regex@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/preset-modules@0.1.3
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-syntax-async-generators@7.8.4
npm ERR! peer dep missing: @babel/core@^7.0.0, required by @babel/helper-create-class-features-plugin@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-syntax-dynamic-import@7.8.3
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-syntax-json-strings@7.8.3
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-syntax-nullish-coalescing-operator@7.8.3
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-syntax-numeric-separator@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-syntax-object-rest-spread@7.8.3
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-transform-parameters@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-syntax-optional-catch-binding@7.8.3
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-syntax-optional-chaining@7.8.3
npm ERR! peer dep missing: @babel/core@^7.0.0, required by @babel/helper-create-class-features-plugin@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0, required by @babel/helper-create-regexp-features-plugin@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0, required by @babel/helper-create-regexp-features-plugin@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0, required by @babel/helper-create-regexp-features-plugin@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0, required by @babel/helper-create-regexp-features-plugin@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-proposal-unicode-property-regex@7.10.4
npm ERR! peer dep missing: @babel/core@^7.0.0-0, required by @babel/plugin-transform-dotall-regex@7.10.4
我们只需要使用以下命令安装一下就可以了,顺便说一下这个^7.0.0-0,它表示的意思是>=7.0版本。
npm i -D @babel/core
执行完成后发现一切都正常了。
关注我的微信公众号
在公众号里留言交流
投稿邮箱:1052839972@qq.com
庭院深深深几许?杨柳堆烟,帘幕无重数。
玉勒雕鞍游冶处,楼高不见章台路。
雨横风狂三月暮。门掩黄昏,无计留春住。
泪眼问花花不语,乱红飞过秋千去。
如果感觉对您有帮助
欢迎向作者提供捐赠
这将是创作的最大动力