npm ERR! D@1.0.0: Package no longer supported. Contact support@npmjs.com for more info

前端就是坑!前端就是坑!前端就是坑!重要的话说三遍。
几乎所有前端的包,每当版本已更新,就来一次大换血,不仅连api给你变了,连下载方式也给你变了,操他二大爷的。好的,吐槽完毕,说回正题。
安装babel转换器相关的包:npm i babel-loader @babel/core @babel/runtime -D
安装babel语法插件相关的包:npm i @babel/preset-env @babel/plugin-transformruntime @babel/plugin-proposal-class-properties –D
这次的报错是这样事的:

npm ERR!   D@1.0.0: Package no longer supported. Contact support@npmjs.com for more info
npm ERR!   Not Found - GET https://registry.npmjs.com/@babel%2fplugin-transformruntime - Not found
npm ERR!    '@babel/plugin-transformruntime@latest' is not in the npm registry.
npm ERR!    You should bug the author to publish it (or use the name yourself!)
npm ERR!   Note that you can also install from a
npm ERR!   tarball, folder, http url, or git url.

大致一看,应该是 @babel/plugin-transformruntime的下载地址问题
于是我排查了了下,把其他包先下载,它自己后下载,果然不出我所料,就是它的问题。报错如下:
在这里插入图片描述
打开它的官网,搜索官网,找到下载方式,好小子,果然是你的毛病,官网是这样写的
在这里插入图片描述
为了方便你们下载,我把代码复制一下:

npm install --save-dev @babel/plugin-transform-runtime
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值