Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to install plugin 'cordova-plugin-ad-admob' #33

Open
singhkamall opened this issue Sep 9, 2018 · 4 comments
Open

Failed to install plugin 'cordova-plugin-ad-admob' #33

singhkamall opened this issue Sep 9, 2018 · 4 comments

Comments

@singhkamall
Copy link

singhkamall commented Sep 9, 2018

I tried with command:
cordova prepare
and it give following error-

Installing "cordova-plugin-ad-admob" for android
Failed to install 'cordova-plugin-ad-admob': CordovaError: Failed to fetch plugin https://github.com/cranberrygame/cordova-plugin-ad-admob-sdk via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: cmd: Command failed with exit code 4294963228 Error output:
npm ERR! addLocal Could not install C:\Users\Owner\AppData\Local\Temp\npm-62588-f5ad9b05\git-cache-1a32a472\b22949df24ccf9b5e3c743b7afde904a93d7f890
npm ERR! Windows_NT 10.0.17134
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "https://github.com/cranberrygame/cordova-plugin-ad-admob-sdk" "--production" "--no-save"
npm ERR! node v6.11.3
npm ERR! npm v3.10.10
npm ERR! code EISDIR
npm ERR! errno -4068
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! C:\Users\Owner\Desktop\Sumo Saga\npm-debug.log
at C:\Users\Owner\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\fetch.js:173:37
at _rejected (C:\Users\Owner\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:864:24)
at C:\Users\Owner\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:890:30
at Promise.when (C:\Users\Owner\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:1142:31)
at Promise.promise.promiseDispatch (C:\Users\Owner\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:808:41)
at C:\Users\Owner\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:624:44
at runSingle (C:\Users\Owner\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:137:13)
at flush (C:\Users\Owner\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:125:13)
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickCallback (internal/process/next_tick.js:104:9)
Failed to restore plugin "cordova-plugin-ad-admob" from config.xml. You might need to try adding it again. Error: Failed to fetch plugin https://github.com/cranberrygame/cordova-plugin-ad-admob-sdk via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: cmd: Command failed with exit code 4294963228 Error output:
npm ERR! addLocal Could not install C:\Users\Owner\AppData\Local\Temp\npm-62588-f5ad9b05\git-cache-1a32a472\b22949df24ccf9b5e3c743b7afde904a93d7f890
npm ERR! Windows_NT 10.0.17134
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "https://github.com/cranberrygame/cordova-plugin-ad-admob-sdk" "--production" "--no-save"
npm ERR! node v6.11.3
npm ERR! npm v3.10.10
npm ERR! code EISDIR
npm ERR! errno -4068
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! C:\Users\Owner\Desktop\Sumo Saga\npm-debug.log

When I trid with command:
cordova plugin add https://github.com/cranberrygame/cordova-plugin-ad-admob
It give following error-

Installing "cordova-plugin-ad-admob" for android
Failed to install 'cordova-plugin-ad-admob': CordovaError: Failed to fetch plugin https://github.com/cranberrygame/cordova-plugin-ad-admob-sdk via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: cmd: Command failed with exit code 4294963228 Error output:
npm ERR! addLocal Could not install C:\Users\Owner\AppData\Local\Temp\npm-60332-b7b74804\git-cache-d3779186\b22949df24ccf9b5e3c743b7afde904a93d7f890
npm ERR! Windows_NT 10.0.17134
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "https://github.com/cranberrygame/cordova-plugin-ad-admob-sdk" "--production" "--save"
npm ERR! node v6.11.3
npm ERR! npm v3.10.10
npm ERR! code EISDIR
npm ERR! errno -4068
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! C:\Users\Owner\Desktop\Sumo Saga\npm-debug.log
at C:\Users\Owner\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\fetch.js:173:37
at _rejected (C:\Users\Owner\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:864:24)
at C:\Users\Owner\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:890:30
at Promise.when (C:\Users\Owner\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:1142:31)
at Promise.promise.promiseDispatch (C:\Users\Owner\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:808:41)
at C:\Users\Owner\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:624:44
at runSingle (C:\Users\Owner\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:137:13)
at flush (C:\Users\Owner\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:125:13)
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickCallback (internal/process/next_tick.js:104:9)
(node:61700) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Failed to fetch plugin https://github.com/cranberrygame/cordova-plugin-ad-admob-sdk via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: cmd: Command failed with exit code 4294963228 Error output:
npm ERR! addLocal Could not install C:\Users\Owner\AppData\Local\Temp\npm-60332-b7b74804\git-cache-d3779186\b22949df24ccf9b5e3c743b7afde904a93d7f890
npm ERR! Windows_NT 10.0.17134
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "https://github.com/cranberrygame/cordova-plugin-ad-admob-sdk" "--production" "--save"
npm ERR! node v6.11.3
npm ERR! npm v3.10.10
npm ERR! code EISDIR
npm ERR! errno -4068
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! C:\Users\Owner\Desktop\Sumo Saga\npm-debug.log

How can I install it correctly?

@singhkamall singhkamall changed the title Failed to install plugin 'cordova-plugin-ad-admon' Failed to install plugin 'cordova-plugin-ad-admob' Sep 9, 2018
@JoaquimPM
Copy link

Hi!

I have the same isue.
Did you solve this problem?
Does anyone know how to solve this?

@MarceloGh05t
Copy link

if you try to install via github it is this error, to fix just install via nmp. type the command below:
npm i cordova-plugin-ad-admo

@MarceloGh05t
Copy link

Hi!

I have the same isue.
Did you solve this problem?
Does anyone know how to solve this?

if you try to install via github it is this error, to fix just install via nmp. type the command below:
npm i cordova-plugin-ad-admo

@MarceloGh05t
Copy link

I tried with command:
cordova prepare
and it give following error-

Installing "cordova-plugin-ad-admob" for android
Failed to install 'cordova-plugin-ad-admob': CordovaError: Failed to fetch plugin https://github.com/cranberrygame/cordova-plugin-ad-admob-sdk via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: cmd: Command failed with exit code 4294963228 Error output:
npm ERR! addLocal Could not install C:\Users\Owner\AppData\Local\Temp\npm-62588-f5ad9b05\git-cache-1a32a472\b22949df24ccf9b5e3c743b7afde904a93d7f890
npm ERR! Windows_NT 10.0.17134
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "https://github.com/cranberrygame/cordova-plugin-ad-admob-sdk" "--production" "--no-save"
npm ERR! node v6.11.3
npm ERR! npm v3.10.10
npm ERR! code EISDIR
npm ERR! errno -4068
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! C:\Users\Owner\Desktop\Sumo Saga\npm-debug.log
at C:\Users\Owner\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\fetch.js:173:37
at _rejected (C:\Users\Owner\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:864:24)
at C:\Users\Owner\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:890:30
at Promise.when (C:\Users\Owner\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:1142:31)
at Promise.promise.promiseDispatch (C:\Users\Owner\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:808:41)
at C:\Users\Owner\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:624:44
at runSingle (C:\Users\Owner\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:137:13)
at flush (C:\Users\Owner\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:125:13)
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickCallback (internal/process/next_tick.js:104:9)
Failed to restore plugin "cordova-plugin-ad-admob" from config.xml. You might need to try adding it again. Error: Failed to fetch plugin https://github.com/cranberrygame/cordova-plugin-ad-admob-sdk via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: cmd: Command failed with exit code 4294963228 Error output:
npm ERR! addLocal Could not install C:\Users\Owner\AppData\Local\Temp\npm-62588-f5ad9b05\git-cache-1a32a472\b22949df24ccf9b5e3c743b7afde904a93d7f890
npm ERR! Windows_NT 10.0.17134
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "https://github.com/cranberrygame/cordova-plugin-ad-admob-sdk" "--production" "--no-save"
npm ERR! node v6.11.3
npm ERR! npm v3.10.10
npm ERR! code EISDIR
npm ERR! errno -4068
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! C:\Users\Owner\Desktop\Sumo Saga\npm-debug.log

When I trid with command:
cordova plugin add https://github.com/cranberrygame/cordova-plugin-ad-admob
It give following error-

Installing "cordova-plugin-ad-admob" for android
Failed to install 'cordova-plugin-ad-admob': CordovaError: Failed to fetch plugin https://github.com/cranberrygame/cordova-plugin-ad-admob-sdk via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: cmd: Command failed with exit code 4294963228 Error output:
npm ERR! addLocal Could not install C:\Users\Owner\AppData\Local\Temp\npm-60332-b7b74804\git-cache-d3779186\b22949df24ccf9b5e3c743b7afde904a93d7f890
npm ERR! Windows_NT 10.0.17134
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "https://github.com/cranberrygame/cordova-plugin-ad-admob-sdk" "--production" "--save"
npm ERR! node v6.11.3
npm ERR! npm v3.10.10
npm ERR! code EISDIR
npm ERR! errno -4068
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! C:\Users\Owner\Desktop\Sumo Saga\npm-debug.log
at C:\Users\Owner\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\fetch.js:173:37
at _rejected (C:\Users\Owner\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:864:24)
at C:\Users\Owner\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:890:30
at Promise.when (C:\Users\Owner\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:1142:31)
at Promise.promise.promiseDispatch (C:\Users\Owner\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:808:41)
at C:\Users\Owner\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:624:44
at runSingle (C:\Users\Owner\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:137:13)
at flush (C:\Users\Owner\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:125:13)
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickCallback (internal/process/next_tick.js:104:9)
(node:61700) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Failed to fetch plugin https://github.com/cranberrygame/cordova-plugin-ad-admob-sdk via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: cmd: Command failed with exit code 4294963228 Error output:
npm ERR! addLocal Could not install C:\Users\Owner\AppData\Local\Temp\npm-60332-b7b74804\git-cache-d3779186\b22949df24ccf9b5e3c743b7afde904a93d7f890
npm ERR! Windows_NT 10.0.17134
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "https://github.com/cranberrygame/cordova-plugin-ad-admob-sdk" "--production" "--save"
npm ERR! node v6.11.3
npm ERR! npm v3.10.10
npm ERR! code EISDIR
npm ERR! errno -4068
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! C:\Users\Owner\Desktop\Sumo Saga\npm-debug.log

How can I install it correctly?

if you try to install via github it is this error, to fix just install via nmp. type the command below:
npm i cordova-plugin-ad-admo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants