{"id":1932,"date":"2015-06-30T06:12:01","date_gmt":"2015-06-30T06:12:01","guid":{"rendered":"http:\/\/www.nikola-breznjak.com\/blog\/?p=1932"},"modified":"2015-07-31T09:54:44","modified_gmt":"2015-07-31T09:54:44","slug":"cordova-plugin-whitelist-error-404-not-found","status":"publish","type":"post","link":"https:\/\/nikola-breznjak.com\/blog\/stack-overflow\/cordova-plugin-whitelist-error-404-not-found\/","title":{"rendered":"cordova-plugin-whitelist Error 404 not found"},"content":{"rendered":"<p><a href=\"http:\/\/stackoverflow.com\/users\/534755\/nikola\"><img loading=\"lazy\" decoding=\"async\" title=\"profile for Nikola at Stack Overflow, Q&amp;A for professional and enthusiast programmers\" src=\"http:\/\/stackoverflow.com\/users\/flair\/534755.png\" rel=\"lightbox[1932]\" alt=\"profile for Nikola at Stack Overflow, Q&amp;A for professional and enthusiast programmers\" width=\"208\" height=\"58\" \/><\/a><br \/>\nI&#8217;m a big fan of <a href=\"http:\/\/stackoverflow.com\/\">Stack Overflow<\/a> and I tend to contribute regularly (am currently in the <a href=\"http:\/\/stackexchange.com\/leagues\/1\/alltime\/stackoverflow\/2008-07-31\/534755?sort=reputationchange#534755\">top 0.X%<\/a>).\u00a0In this category (<a href=\"http:\/\/www.nikola-breznjak.com\/blog\/category\/stack-overflow\/\">stackoverflow<\/a>)\u00a0of posts I will will be posting my top rated questions and answers. This, btw, is allowed as explained in the meta thread <a href=\"http:\/\/meta.stackoverflow.com\/questions\/266971\/can-i-post-so-questions-and-answers-in-a-personal-blog\/266973\">here<\/a>.<\/p>\n<p>My <a href=\"http:\/\/stackoverflow.com\/questions\/31083504\/cordova-plugin-whitelist-error-404-not-found\">question<\/a> was:<\/p>\n<p>I tried to run this code: <code>cordova plugin add cordova-plugin-whitelist<\/code> but what I keep getting is this:<\/p>\n<pre class=\"lang:default decode:true\">Fetching plugin \"cordova-plugin-whitelist\" via plugin registry Error: 404 Not Found: cordova-plugin-whitelist at RegClient.&lt;anonymous&gt; (\/usr\/local\/lib\/node_modules\/cordova\/node_modules\/cordova-lib\/node_modules\/npm\/node_modules\/npm-registry-client\/lib\/request.js:304:14) at Request._callback (\/usr\/local\/lib\/node_modules\/cordova\/node_modules\/cordova-lib\/node_modules\/npm\/node_modules\/npm-registry-client\/lib\/request.js:246:65) at Request.self.callback (\/usr\/local\/lib\/node_modules\/cordova\/node_modules\/cordova-lib\/node_modules\/npm\/node_modules\/request\/request.js:236:22) at Request.emit (events.js:98:17) at Request.&lt;anonymous&gt; (\/usr\/local\/lib\/node_modules\/cordova\/node_modules\/cordova-lib\/node_modules\/npm\/node_modules\/request\/request.js:1142:14) at Request.emit (events.js:117:20) at IncomingMessage.&lt;anonymous&gt; (\/usr\/local\/lib\/node_modules\/cordova\/node_modules\/cordova-lib\/node_modules\/npm\/node_modules\/request\/request.js:1096:12) at IncomingMessage.emit (events.js:117:20) at _stream_readable.js:943:16 at process._tickCallback (node.js:419:13)<\/pre>\n<p>Any ideas?<\/p>\n<p>I actually found the answer to this myself:<\/p>\n<blockquote><p>From an <a href=\"http:\/\/cordova.apache.org\/announcements\/2015\/04\/21\/plugins-release-and-move-to-npm.html\" rel=\"nofollow\">official blog post<\/a>, Cordova is moving their plugins to npm.<\/p>\n<p>I installed the <a href=\"https:\/\/www.npmjs.com\/package\/cordova-plugin-whitelist\" rel=\"nofollow\">cordova-plugin-whitelist<\/a> easily now with npm:<\/p>\n<pre><code>npm install cordova-plugin-whitelist<\/code><\/pre>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m a big fan of Stack Overflow and I tend to contribute regularly (am currently in the top 0.X%).\u00a0In this category (stackoverflow)\u00a0of posts I will will be posting&hellip;<\/p>\n","protected":false},"author":1,"featured_media":609,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43,35],"tags":[],"class_list":["post-1932","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ionic","category-stack-overflow"],"_links":{"self":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/1932","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/comments?post=1932"}],"version-history":[{"count":1,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/1932\/revisions"}],"predecessor-version":[{"id":1933,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/1932\/revisions\/1933"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/media\/609"}],"wp:attachment":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/media?parent=1932"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/categories?post=1932"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/tags?post=1932"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}