tnblog
首页
视频
资源
登录
不帅~~但是很暖心.....
排名
14
文章
75
粉丝
21
评论
43
申请别的接口数据(网络接口)
是伍尚金哇 : 敲一夜代码,流下两三行泪水,掏空四肢五体,六杯白开水七桶泡面
mui框架-移动端跳转以及传值的简单方法(修改解决方法)
是伍尚金哇 : 测试了 可以直接在 extras: { userid:'10' //自定义扩展...
数据库的varchar和nvarchar的区别
是伍尚金哇 : 没人看 自己看一个 温习一下
ICP备案 :渝ICP备18016597号-1
网站信息:2018-2025TNBLOG.NET
技术交流:群号656732739
联系我们:contact@tnblog.net
公网安备:50010702506256
欢迎加群交流技术

ionic cordova platform add android报错

7140人阅读 2021/5/11 8:26 总访问:373120 评论:0 收藏:0 手机
分类: ionic

ionic各种环境以及配置完但是添加平台报错:

Using cordova-fetch for anroid

Failed to fetch platform anroid

Probably this is either a connection problem, or platform spec is incorrect.

Check your connection and platform name/version/URL.

CordovaError: Error: npm: Command failed with exit code 1 Error output:

npm ERR! code E404

npm ERR! 404 Not Found - GET https://registry.npmjs.org/anroid - Not found

npm ERR! 404

npm ERR! 404  'anroid@latest' is not in the npm registry.

npm ERR! 404 You should bug the author to publish it (or use the name yourself!)

npm ERR! 404

npm ERR! 404 Note that you can also install from a

npm ERR! 404 tarball, folder, http url, or git url.


npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Users\Sin\AppData\Roaming\npm-cache\_logs\2021-05-11T00_17_48_847Z-debug.log

[ERROR] An error occurred while running subprocess cordova.


        cordova.cmd platform add anroid exited with exit code 1.


        Re-running this command with the --verbose flag may provide more information.

解决办法:

一、先查看一下有没有设置代理

npm config get proxy
npm config get https-proxy

以上两个命令如果返回null,那么就不需要执行以下命令清理

npm config set https-proxy nullnpm config set proxy null

二、重新设置

npm config set registry https://registry.npmjs.org/

 

继续执行其他命令检测是否成功!


评价

指定报错页面

在web.xml中设置<error-page> <!--错误状态码--> <error-code>404</error-code> <!--错误页...

nginx常用命令。nginx启动命令。nginx重启命令。nginx关闭命令。nginx测试配置文件是否正确。nginx nginx.pid文件丢失报错

启动命令:start nginx 关闭命令:nginx -s stop nginx -s quit nginx -s stop与nginx -s quit区别 Quit is a graceful shu...

MySQL控制台插入中文数据报错1366解决

计算机配置: windows系统.数据库:MySQL5.5.如图 : 下图为表结构信息:通过 show full columns from userinfo;查询所得 na...

net core启动报错Unable to configure HTTPS endpoint. No server certificate was specified

这是因为net core2.1默认使用的https,如果使用Kestrel web服务器的话没有安装证书就会报这个错其实仔细看他的错误提示,其...

docker启动报错 No default Boot2Docker ISO found locally downloading the latest

这是因为,启动时如果检测到没有 Boot2Docker,就会去下载,这个下载过程出现网络连接上的错误了,导致启动失败。可以去下...

mysql 存储过程报错:delimiter

最近刚学sql,学到了存储过程,每当练习的时候就一直出现问题。 现在记录CREATEPROCEDUREproc_out(OUTstuidINT) begin se...

code first执行命令报错,无法将“Enable-Migrations”项识别为 cmdlet、函数、脚本文件

EF:执行命令报错无法将“Enable-Migrations”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如...

nuget执行报错An error occurred while retrieving package metadata for xx

nuget执行报错An error occurred while retrieving package metadata for这个是VS NuGet软件包过旧的问题,解决办法:工具-...

WEBAPI报错:Attribute routes with the same name 'Get' must have the same template

是因为 asp.net core 中默认创建的 api controller 中的 Get(id) Action的属性都是[HttpGet("{id}", Name = &quo...

关于报错的一些小错误

Uncaught SyntaxError: missing ) after argument list at siren.html:36今天做项目的时候发现了这个错误我们在写JS的时候...

当使用第三方 netstandard 类库时报错

web.config中加入以下代码<system.web> <compilationdebug="true"targetFramework="4.5"&gt...

layui 报错 l.push is not a function

解决方法:layui.use(['jquery','layer','element'],function(){ } 而不是 layui.use(&#39...

VS2017 .net core web项目 添加引用 报错

VS2017 .net core web项目 添加引用 报错 vs2017添加引用时报错未能正确加载“ReferenceManagerPackage”包第一步:找到以...

.net core序列化报错JsonSerializationException: Self referencing loop detected for property

在framework中可以使用如下代码解决:context.Configuration.ProxyCreationEnabled=false;但是在.net core中就不行了.net c...

启动grpc报错:HTTP/2 over TLS is not supported on Windows 7

.net core grpc报错:NotSupportedException: HTTP/2 over TLS is not supported on Windows 7 due to missing ALPN suppor...
如果只是路过,那我就在终点等你。