Meteor project building doesn't like Cordova plugins

I built my application 6 months ago. Today I am trying to release an update. I get this build error while trying to build now:

Error while building for mobile platforms: Error running
npm ERR! fetch failed
npm ERR! fetch failed
npm ERR! fetch failed
Error: connect ETIMEDOUT
at errnoException (net.js:905:11)
at Object.afterConnect [as oncomplete] (net.js:896:19)

Fetching plugin "de.appplant.cordova.plugin.local-notification@0.8.1" via
plugin registry

The contents of my cordova-plugins file is this:


Then I ran across a forum on another site that says that Cordova plugins are no longer supported, and to use npm instead.

I don’t know how to install the npm packages into my meteor project. Can someone supply me with the command? And will this solve my problem? Do I need to modify my cordoba-plugins file?

On the website, they give you a command:

npm i cordova-plugin-admobpro

does this command install the package into your meteor project, if you are in your project’s directory?

cordova plugins work for me. Just made another build today.
Make sure you are fetching the right version #

I upgraded my packages to the latest versions, but I am still getting that 404 error, and it won’t build with the cordova packages.

Cordova switched from downloading plugins from its own registry to downloading plugins from npm, but the install process is still managed by the tool. So you won’t have to (or can) install directly from npm. It is up to plugin authors to release new versions to npm.

I’m not sure what is going on in your situation, but it looks like the plugin you are trying to install is only available on npm in a newer version (0.8.2). Could you try updating to that?

1 Like

I upgraded all of my packages, but I am still getting that error. Do I have to update meteor? The last time I updated my project to 1.2 it broke a lot of stuff.

I can run in my project:
meteor update

Do I also need to update meteor in ~/.meteor?

Have you tried updating de.appplant.cordova.plugin.local-notification to 0.8.2?

Yes I updated it to 0.8.2.

I actually took the error I got from when I removed the admob package, and so I got the same error with the local notification, the one I posted. It accepts the first package in the package list, then stops at 404 not found with the admob package. If I remove the admob package, it throws the same error for the local notifications package.

This now the contents of my cordoba-plugins file:


It throws the error on the admob package.