floatinghotpot / cordova-httpd

Embed tiny web server into Cordova with a plugin
285 stars 148 forks source link

Error trying to install the Plugin #55

Open volkergraf opened 7 years ago

volkergraf commented 7 years ago

Hello trying to install the Plugin I get the following Error.. Any Idead ?

cordova plugin add https://github.com/floatinghotpot/cordova-httpd.git


Error: Failed to fetch plugin https://github.com/floatinghotpot/cordova-httpd.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/p_/ffn44cb97ssfrcvsd77yfvdm0000gn/T/npm-38291-f5e7761b/git-cache-54b067fbaa3d1878e91f8c8619307de6/78b9818516842650a9bd59881cbb543db2848d29
npm ERR! Darwin 16.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "https://github.com/floatinghotpot/cordova-httpd.git" "--save"
npm ERR! node v5.1.1
npm ERR! npm  v3.3.12
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.

npm ERR! Please include the following file with any support request: npm ERR! /Users/volkergraf/DEV/NODE/Carfinder/CordovaVectorICL/nodemodules/npm-debug.log Volkers-MBP-9:CordovaVectorICL volkergraf$ cordova plugin add https://github.com/floatinghotpot/cordova-httpd.git Error: Failed to fetch plugin https://github.com/floatinghotpot/cordova-httpd.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/p/ffn44cb97ssfrcvsd77yfvdm0000gn/T/npm-38303-1d8813f4/git-cache-fe474ec1ebeb758300f6b78ad25f59ca/78b9818516842650a9bd59881cbb543db2848d29 npm ERR! Darwin 16.5.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "https://github.com/floatinghotpot/cordova-httpd.git" "--save" npm ERR! node v5.1.1 npm ERR! npm v3.3.12 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.

npm ERR! Please include the following file with any support request: npm ERR! /Users/volkergraf/DEV/NODE/Carfinder/CordovaVectorICL/node_modules/npm-debug.log

floatinghotpot commented 7 years ago

it seems a network connection problem. try installing it from npm instead:

plugin install cordova-plugin-httpd
jayenashar commented 7 years ago

have been trying a few times. and another github repo works fine. (https://github.com/mapsplugin/cordova-plugin-googlemaps.git ). the npm version works fine, too.

could it be an issue with the latest cordova or cordova-android?

jayenashar commented 7 years ago

i see the master branch has no package.json. could that be an issue?

TinkGu commented 7 years ago

same issue

MrShakes commented 6 years ago

Use --nofetch flag

limkimsan commented 6 years ago

--nofetch did the magic