简体   繁体   English

没有找到与 @babel/plugin-transform-object-super@^7.8.3 匹配的版本。 使用 Vue.js

[英]No matching version found for @babel/plugin-transform-object-super@^7.8.3. with Vue.js

When I am trying to create a vue project using the vue-cli it is giving me the following error message.当我尝试使用 vue-cli 创建 vue 项目时,它给了我以下错误消息。

ETARGET
No matching version found for @babel/plugin-transform-object-super@^7.8.3.
In most cases you or one of your dependencies are requesting a package version that doesn't exist.

It was specified as a dependency of '@babel/preset-env'

A complete log of this run can be found in: /home/avinash/.npm/_logs/2020-01-13T23_53_01_890Z-debug.log可以在以下位置找到此运行的完整日志:/home/avinash/.npm/_logs/2020-01-13T23_53_01_890Z-debug.log

my node version is v12.14.1 npm version is v6.13.4我的节点版本是 v12.14.1 npm 版本是 v6.13.4

I was facing this issue a while ago and this is what worked for me:不久前我遇到了这个问题,这对我有用:

Are you perhaps using your company laptop where your npm registry is not set by default to: https://registry.npmjs.org/ ?您是否正在使用公司笔记本电脑,而默认情况下您的 npm 注册表未设置为: https ://registry.npmjs.org/?

If yes, you may go to your .npmrc file, comment out your current registry, and set registry = https://registry.npmjs.org/如果是,你可以去你的 .npmrc 文件,注释掉你当前的注册表,然后设置 registry = https://registry.npmjs.org/

Run your vue-cli command, and then restore the .npmrc to original settings :)运行您的 vue-cli 命令,然后将 .npmrc 恢复为原始设置:)

Not sure if you have a similar issue but this is what worked for me.不确定您是否有类似的问题,但这对我有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM