don/cordova-plugin-hello

Error

thecouk opened this issue · 4 comments

Error: Failed to fetch plugin https://github.com/don/cordova-plugin-hello.git via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: npm: Command failed with exit code 235 Error output:
npm ERR! addLocal Could not install /var/folders/7c/f11qll2s2sn3sbn77m6jmxj40000gn/T/npm-4881-9c5627f7/git-cache-485b75f0/d88f773deba3123b0a041da005972f9908f7f152
npm ERR! Darwin 16.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "https://github.com/don/cordova-plugin-hello.git" "--save"
npm ERR! node v7.10.0
npm ERR! npm v4.2.0
npm ERR! code EISDIR
npm ERR! errno -21
npm ERR! syscall read

npm ERR! eisdir EISDIR: illegal operation on a directory, read
npm ERR! eisdir This is most likely not a problem with npm itself
npm ERR! eisdir and is related to npm not being able to find a package.json in
npm ERR! eisdir a package you are trying to install.

Also seeing this error. I am not having the error with other packages.

You know what's ironic? This is the first package people will try as they read how to add plugins to cordova. :)

Not hugely encouraging.

@F1LT3R Hello Alistair, you are right it was not very encouraging to give me error in the first tutorial I found that it was just this, however I continued researching and found the following tutorial: How to write Cordova Plugins with this base I can create my own, so if it works for you then the link: Plantilla para un Plugin de Cordova I hope you help, best regards.

package.json file is missing.

don commented

@mitaljoshi thanks I merged #22 so should work now