Closed lavenpillay closed 6 years ago
Installing from npm works fine for me (see console output below).
Looking at the error message in your log, it looks like npm is receiving a webpage response instead of JSON:
<title>Fastly error: unknown domain</title>
Check your internet connection is working properly.
Closing as it is not a problem caused by this plugin.
Thanks for checking. If you have time, to help me investigate my issue, please send me your full detailed npm log for that. Specifically i'm looking for this section (near the top), since I have a working internet connection, but maybe its our company web-filter or something.
Thanks
8 silly mapToRegistry uri http://registry.npmjs.org/uk.co.workingedge.phonegap.plugin.launchnavigator
9 verbose request uri http://registry.npmjs.org/uk.co.workingedge.phonegap.plugin.launchnavigator
10 verbose request no auth needed
11 info attempt registry request try #1 at 12:55:31
12 verbose request id f68b82510a0eb8fa
13 http request GET http://registry.npmjs.org/uk.co.workingedge.phonegap.plugin.launchnavigator
14 http 500 http://registry.npmjs.org/uk.co.workingedge.phonegap.plugin.launchnavigator
Since you asked nicely :grin:
Excellent ! That helped confirm something which led me to the solution! For anyone else, who might've done the same:
The reason I was getting the error was because a few months ago, to fix a different NPM Registry issue, I added these lines to my hosts file, and I just had to remove them :
# npm fix
151.101.36.162 registry.npmjs.com
151.101.36.162 registry.npmjs.org
Thanks again, @dpa99c !!
I'm submitting a ... (check one with "x"):
Bug report
Cannot install plugin due to an "unknown domain" error
Current behavior:
When using this command :
ionic cordova plugin add uk.co.workingedge.phonegap.plugin.launchnavigator
I'm getting this error response:
Output from debug log :
Expected behavior:
Should install from NPM repo
Steps to reproduce:
Run this command in a cordova project :
ionic cordova plugin add uk.co.workingedge.phonegap.plugin.launchnavigator