Error installing angular translate local storage - bower

I have problem of installing angular translate local storage using "bower install angular-translate-storage-local --save-dev" in mac terminal. It just shows this error 'ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/^1/2.git", exit code of #128'.
Please help. I have tried 'git config --global url."https://".insteadOf git://' but it still does not work.
Note: I use bower version 1.7.9.

git config --global url."https://".insteadOf git://
I hope this will solve your problem. Please refer below same git issue.
https://github.com/Hacklone/private-bower/issues/102

Related

The RWPickFlavor.podspec specification does not validate

I'm learning by following this tutorial:
https://www.raywenderlich.com/5823-how-to-create-a-cocoapod-in-swift
And I'm stuck in the place where it says:
Using Your New CocoaPod
in the terminal I wrote:
cd ~/Documents/Libraries/RWPickFlavor
pod repo add RWPodSpecs https://github.com/user/RWPodSpecs.git
pod repo push RWPodSpecs RWPickFlavor.podspec
but I get a lot of errors:
[!] /usr/bin/git clone https://github.com/user/RWPodSpecs.git -- RWPodSpecs
fatal: destination path 'RWPodSpecs' already exists and is not an empty directory
and:
Validating spec
-> RWPickFlavor (0.1.0)
- NOTE | url: The URL (https://github.com/user/RWPickFlavor) is not reachable.
- ERROR | [iOS] unknown: Encountered an unknown error ([!] /usr/bin/git clone https://github.com/user/RWPickFlavor.git /var/folders/bw/h527d_4x6yb7rv3tdrldty1c0000gn/T/d20220525-6530-de485a --template= --single-branch --depth 1 --branch 0.1.0
Cloning into '/var/folders/bw/h527d_4x6yb7rv3tdrldty1c0000gn/T/d20220525-6530-de485a'...
warning: Could not find remote branch 0.1.0 to clone.
fatal: Remote branch 0.1.0 not found in upstream origin
) during validation.
[!] The `RWPickFlavor.podspec` specification does not validate.
Any ideas?
I had this very issue and here is how I resolved it:
Verify you are in the ~/Documents/Libraries/RWPickFlavor directory before performing any commands in Terminal.
Verify that the contents of RWPickFlavor.podspec are correct. Mine was not and, if something is wrong, then it will not validate the Podspec.
I went ahead and deleted the remote repository on GitHub and then ran rm -rf .git (again, make sure you are in ~/Documents/Libraries/RWPickFlavor). This step might be excessive, but I figured I had missed something when pushing to GitHub and, since this was just an initial commit, I did not feel like it really harmed anything. Yes, I am aware this is not best practice with regards to version control.
I then went ahead and recreated the remote repository on GitHub.
With the remote repository once again available, I did the following:
git init
git add .
git commit -m "Initial commit"
git tag 0.1.0
git branch -M main
git remote add origin https://github.com/user/RWPickFlavor.git
git push -u origin main --tags
pod repo push RWPodSpecs RWPickFlavor.podspec
Explanation: I think I/we might have forgotten the tag creation in the process and also forgot to include it in the push. Before I deleted the remote repo, I noticed that there was no tag and, even if I added a tag, the Podspec still would not validate.
Hope this is helpful.

about pod installation error in ios project

when i am trying to install the pod its showing errors. how to solve this?
Apples-MacBook-Pro:~ apple$ cd /Users/apple/Desktop/lkmmlkmk
Apples-MacBook-Pro:lkmmlkmk apple$ pod init [!] Existing Podfile found
in directory Apples-MacBook-Pro:lkmmlkmk apple$ pod install Setting up
CocoaPods master repo fatal: ambiguous argument 'HEAD': unknown
revision or path not in the working tree. Use '--' to separate paths
from revisions, like this: 'git [...] --
[...]' fatal: ambiguous argument 'HEAD': unknown revision or
path not in the working tree. Use '--' to separate paths from
revisions, like this: 'git [...] -- [...]'
fatal: ambiguous argument 'HEAD': unknown revision or path not in the
working tree. Use '--' to separate paths from revisions, like this:
'git [...] -- [...]' $ /usr/bin/git -C
/Users/apple/.cocoapods/repos/master fetch origin --progress fatal:
'origin' does not appear to be a git repository fatal: Could not
read from remote repository.
Please make sure you have the correct access rights and the
repository exists. [!] Unable to add a source with url
https://github.com/CocoaPods/Specs.git named master-1. You can try
adding it manually in ~/.cocoapods/repos or via pod repo add.
This problem got solve by re setting the git manually if anyone having same issue just reset the cocoa-pods it will help you.
Go to ~/.cocoapods/repos and run git clone https://github.com/CocoaPods/Specs.git master
it will help you to resolve the solution

bower install error ECMDERR

I'm trying to follow along angular-material tutoriel http://www.angular-meteor.com/tutorials/whatsapp/ionic/bootstrapping using ionic.
When I tried to do bower install, I got the following error:
bower not-cached git://github.com/driftyco/ionic-bower.git#1.2.4
bower resolve git://github.com/driftyco/ionic-bower.git#1.2.4
bower ECMDERR Failed to execute "git ls-remote --tags --heads
git://github.com/driftyco/ionic-bower.git", exit code of #128 ssh: Could not resolve
hostname https: Name or service not known fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
Additional error details:
ssh: Could not resolve hostname https: Name or service not known
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
I found many questions here with the same problem, and I lot of them were solved by running
git config --global url."https://".insteadOf git://
But I tried it, and it didn't solve mine.
is there anyway to fix it? if not, is there anyway other than bower to do this?
The problem was with the .gitconfig file (located for me case in c:/users/my-account-name/ )
I just deleted these lines
[url "https:/"]
insteadOf = git://
[url "http://"]
insteadOf = git://
and it worked. I think in my case, I shouldn't have run the command
git config --global url."https://".insteadOf git://

how to solve git error while installing linkedin from git://github.com/pengwynn/linkedin.git?

i get this error while using bundle install in ROR.
Fetching git://github.com/pengwynn/linkedin.git
fatal: Unable to look up github.com (port 9418) (No such host is known. )
Git error: command git clone "git://github.com/pengwynn/linkedin.git" "C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/ca
che/bundler/git/linkedin-3e3919d62b37a1f8879ade6b51b3eeb032fc8973" --bare --no-hardlinks in directory C:/linkedin/linke
dinfrongit has failed.
I am using windows.
Are you behind a firewall blocking connections on port 9418? Perhaps you can give it a try with the http protocol?
git clone https://github.com/pengwynn/linkedin.git
Set proxy using git config command in the command prompt with
the following two commands:
git config --global http.proxy http://username:password#host:port
git config --global https.proxy http://username:password#host:port
In command like:
git clone git://github.com/saasbook/hw2_rottenpotatoes.git
Replace replace git:// with https://.
git clone https://github.com/saasbook/hw2_rottenpotatoes.git

How to install a plugin from github?

I have tryed to run this code in my console:
script/plugin install git://github.com/apotonick/cells.git
...but i only get an empty folder named "cells" in my "vendor/plugins" dir.
What's wrong?
Check you Git version.
This may be related with you gitconfig file, as described in this thread
The reason is that it appears rails-2.3.5/lib/commands/plugin.rb is trying use git pull to grab the plugin code (see the install_using_git method), which doesn't work right.
Example:
script/plugin install git://github.com/fesplugas/typus.git
mkdir vendor/plugins/typus
cd vendor/plugins/typus
git init
git pull --depth 1 git://github.com/fesplugas/typus.git
That last line exits 1, but that error is being masked by the install_using_git method, and the directory is just rm -rf'ed.
I tracked this down to a conflict with ~/.gitconfig. If I remove these lines it works:
[branch "master"]
remote = origin
merge = refs/heads/master
It appears a naked git pull has problems with these settings.
Actually, the problem would be here because of a global git config file (in your homedir: '~/.gitconfig'), defining a master which may be incompatible with the master expected by the git pull within that specific Git repo.

Resources