Shazron Abdullah created CB-12863:
-------------------------------------
Summary: Can't install plugins from a branch (cordova@7)
Key: CB-12863
URL: https://issues.apache.org/jira/browse/CB-12863
Project: Apache Cordova
Issue Type: Bug
Components: cordova-fetch
Environment: [email protected]
[email protected]
Reporter: Shazron Abdullah
Assignee: Audrey So
1st try:
{code}
$ cordova plugin add
https://github.com/apache/cordova-plugins.git\#wkwebview-engine-localhost
Installing "cordova-labs-wkwebview-engine-localhost" for ios
Failed to install 'cordova-labs-wkwebview-engine-localhost': CordovaError:
Failed to fetch plugin
https://git-wip-us.apache.org/repos/asf/cordova-plugins.git#local-webserver 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 254 Error output:
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No README data
npm ERR! not a package
/var/folders/40/pyxnqlcj6bn_43qrjp3p0xtw0000gp/T/npm-28533-ff14b1ee/git-wip-us.apache.org/repos/asf/cordova-plugins.git/local-webserver
npm ERR! Darwin 16.7.0
npm ERR! argv "/Users/shazron/.nvm/versions/node/v4.6.0/bin/node"
"/Users/shazron/.nvm/versions/node/v4.6.0/bin/npm" "install"
"https://git-wip-us.apache.org/repos/asf/cordova-plugins.git#local-webserver"
"--save"
npm ERR! node v4.6.0
npm ERR! npm v2.15.9
npm ERR! path
/var/folders/40/pyxnqlcj6bn_43qrjp3p0xtw0000gp/T/npm-28533-ff14b1ee/unpack-968d75f9eab2/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open
'/var/folders/40/pyxnqlcj6bn_43qrjp3p0xtw0000gp/T/npm-28533-ff14b1ee/unpack-968d75f9eab2/package.json'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /Users/shazron/Desktop/gtm/node_modules/npm-debug.log
at
/Users/shazron/.nvm/versions/node/v4.6.0/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/fetch.js:205:33
at _rejected
(/Users/shazron/.nvm/versions/node/v4.6.0/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/cordova-fetch/node_modules/q/q.js:864:24)
at
/Users/shazron/.nvm/versions/node/v4.6.0/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/cordova-fetch/node_modules/q/q.js:890:30
at Promise.when
(/Users/shazron/.nvm/versions/node/v4.6.0/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/cordova-fetch/node_modules/q/q.js:1142:31)
at Promise.promise.promiseDispatch
(/Users/shazron/.nvm/versions/node/v4.6.0/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/cordova-fetch/node_modules/q/q.js:808:41)
at
/Users/shazron/.nvm/versions/node/v4.6.0/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/cordova-fetch/node_modules/q/q.js:624:44
at runSingle
(/Users/shazron/.nvm/versions/node/v4.6.0/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/cordova-fetch/node_modules/q/q.js:137:13)
at flush
(/Users/shazron/.nvm/versions/node/v4.6.0/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/cordova-fetch/node_modules/q/q.js:125:13)
at nextTickCallbackWith0Args (node.js:420:9)
at process._tickCallback (node.js:349:13)
Error: Failed to fetch plugin
https://git-wip-us.apache.org/repos/asf/cordova-plugins.git#local-webserver 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 254 Error output:
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No README data
npm ERR! not a package
/var/folders/40/pyxnqlcj6bn_43qrjp3p0xtw0000gp/T/npm-28533-ff14b1ee/git-wip-us.apache.org/repos/asf/cordova-plugins.git/local-webserver
npm ERR! Darwin 16.7.0
npm ERR! argv "/Users/shazron/.nvm/versions/node/v4.6.0/bin/node"
"/Users/shazron/.nvm/versions/node/v4.6.0/bin/npm" "install"
"https://git-wip-us.apache.org/repos/asf/cordova-plugins.git#local-webserver"
"--save"
npm ERR! node v4.6.0
npm ERR! npm v2.15.9
npm ERR! path
/var/folders/40/pyxnqlcj6bn_43qrjp3p0xtw0000gp/T/npm-28533-ff14b1ee/unpack-968d75f9eab2/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open
'/var/folders/40/pyxnqlcj6bn_43qrjp3p0xtw0000gp/T/npm-28533-ff14b1ee/unpack-968d75f9eab2/package.json'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /Users/shazron/Desktop/gtm/node_modules/npm-debug.log
{code}
2nd try:
{code}
Error: Failed to fetch plugin
https://github.com/apache/cordova-plugins.git#wkwebview-engine-localhost via
registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Failed to get absolute path to installed module
{code}
Workaround: use --nofetch
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]