Closed markshust closed 5 years ago
What version of node you are using? According to error message:
% Failed to install 'cordova-universal-links-plugin':TypeError: undefined is not a function
at module.exports (/Users/markshust/Sites/foo/.meteor/local/cordova-build/plugins/cordova-universal-links-plugin/hooks/beforePluginInstallHook.js:49:16)
It can't find spawnSync
method.
meteor uses node 0.10
Never used it, so will ask: it can't work with node 4+?
If not - then you can do the following:
Go to plugin.xml
and remove line 28:
<hook src="hooks/beforePluginInstallHook.js" type="before_plugin_install" />
In your application remove ios and android platforms from the project:
cordova platform remove ios android
Add plugin with git link:
cordova plugin add https://github.com/markoshust/cordova-universal-links-plugin.git
Install plugin dependencies:
cd YOUR_PROJECT/plugins/cordova-universal-links-plugin
npm i
Now you can add platforms to the project:
cordova platform add ios android
So, the task is to install plugin dependencies before adding plugin to the platforms.
👋 Hi! Thank you for your interest in this repo.
😢 We are not using nordnet/cordova-universal-links-plugin anymore, and we lack the manpower and the experience needed to maintain it. We are aware of the inconveniece that this may cause you. Feel free to use it as is, or create your own fork.
🔒 This will now be closed & locked.
ℹ️ Please see #160 for more information.
I'm receiving the following error when trying to install with Meteor 1.3. This happens at build-time when trying to run on ios-device: