Attempting to install a github repository called Stencil CLI for a BigCommerce website dev.
Keep getting the following in Windows 10 Powershell when calling npm to clone stencil repo to local directory
npm WARN git config --get remote.origin.url returned wrong result (git#github.com:bigcommerce/stencil-cli)
npm ERR! git clone git#github.com:bigcommerce/stencil-cli Cloning into bare repository 'C:\Users\stencil\AppData\Roaming\npm-cache_git-remotes\git-github-com-bigcommerce-stencil-cli-5691b922'...
npm ERR! git clone git#github.com:bigcommerce/stencil-cli Host key verification failed.
npm ERR! git clone git#github.com:bigcommerce/stencil-cli fatal: Could not read from remote repository.
npm ERR! git clone git#github.com:bigcommerce/stencil-cli
npm ERR! git clone git#github.com:bigcommerce/stencil-cli Please make sure you have the correct access
rights
npm ERR! git clone git#github.com:bigcommerce/stencil-cli and the repository exists.
npm ERR! addLocal Could not install bigcommerce/stencil-cli
npm ERR! Error: ENOENT, stat 'C:\Users\stencil\bigcommerce\stencil-cli'
npm ERR! If you need help, you may report this log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! npm-#googlegroups.com
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\Program Files (x86)\nodejs\node.exe" "C:\Program Files (x86)\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "#bigcommerce/stencil-cli"
npm ERR! cwd C:\Users\stencil
npm ERR! node -v v0.10.16
npm ERR! npm -v 1.3.8
npm ERR! path C:\Users\stencil\bigcommerce\stencil-cli
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\stencil\npm-debug.log
npm ERR! not ok code 0
Related
I entered npm install nodegit and got the following error
npm ERR! Linux 3.10.0-514.2.2.el7.x86_64
npm ERR! argv "/usr/bin/node" "/bin/npm" "install" "nodegit"
npm ERR! node v6.9.2
npm ERR! npm v3.10.9
npm ERR! path /opt/portal_server/node_modules/nodegit
npm ERR! code EISGIT
npm ERR! git /opt/portal_server/node_modules/nodegit: Appears to be a git repo or submodule.
npm ERR! git /opt/portal_server/node_modules/nodegit
npm ERR! git Refusing to remove it. Update manually,
npm ERR! git or move it out of the way first.
npm ERR! Please include the following file with any support request:
npm ERR! /opt/portal_server/npm-debug.log
Could you please suggest a way to resolve this error?
Try running this
sudo rm -rf node_modules/*/.git/
Then try installing nodegit
Installing the angular cli with:
npm -g install angular/cli
Yields this error with node 8.6:
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://git#github.com/angular/cli.git
npm ERR!
npm ERR! Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/user/.npm/_logs/2017-10-10T16_41_49_141Z-debug.log
Changing to node version 6.11.4 yeilds similar errors:
npm ERR! git clone --template=/Users/user/.npm/_git-remotes/_templates --mirror git#github.com:angular/cli.git /Users/user/.npm/_git-remotes/git-github-com-angular-cli-git-05516032: Cloning into bare repository '/Users/user/.npm/_git-remotes/git-github-com-angular-cli-git-05516032'...
npm ERR! git clone --template=/Users/user/.npm/_git-remotes/_templates --mirror git#github.com:angular/cli.git /Users/user/.npm/_git-remotes/git-github-com-angular-cli-git-05516032: Warning: Permanently added the RSA host key for IP address '64:ff9b::c01e:fd71' to the list of known hosts.
npm ERR! git clone --template=/Users/user/.npm/_git-remotes/_templates --mirror git#github.com:angular/cli.git /Users/user/.npm/_git-remotes/git-github-com-angular-cli-git-05516032: Permission denied (publickey).
npm ERR! git clone --template=/Users/user/.npm/_git-remotes/_templates --mirror git#github.com:angular/cli.git /Users/user/.npm/_git-remotes/git-github-com-angular-cli-git-05516032: fatal: Could not read from remote repository.
npm ERR! git clone --template=/Users/user/.npm/_git-remotes/_templates --mirror git#github.com:angular/cli.git /Users/user/.npm/_git-remotes/git-github-com-angular-cli-git-05516032:
npm ERR! git clone --template=/Users/user/.npm/_git-remotes/_templates --mirror git#github.com:angular/cli.git /Users/user/.npm/_git-remotes/git-github-com-angular-cli-git-05516032: Please make sure you have the correct access rights
npm ERR! git clone --template=/Users/user/.npm/_git-remotes/_templates --mirror git#github.com:angular/cli.git /Users/user/.npm/_git-remotes/git-github-com-angular-cli-git-05516032: and the repository exists.
npm ERR! Darwin 16.7.0
npm ERR! argv "/Users/user/.nvm/versions/node/v6.11.4/bin/node" "/Users/user/.nvm/versions/node/v6.11.4/bin/npm" "install" "-g" "angular/cli"
npm ERR! node v6.11.4
npm ERR! npm v3.10.10
npm ERR! code 128
npm ERR! Command failed: git clone --template=/Users/user/.npm/_git-remotes/_templates --mirror git#github.com:angular/cli.git /Users/user/.npm/_git-remotes/git-github-com-angular-cli-git-05516032
npm ERR! Cloning into bare repository '/Users/user/.npm/_git-remotes/git-github-com-angular-cli-git-05516032'...
npm ERR! Warning: Permanently added the RSA host key for IP address '64:ff9b::c01e:fd71' to the list of known hosts.
npm ERR! Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /Users/user/npm-debug.log
This is happening with both my Ubuntu remote server and my local MacBook, both of which have valid SSH keys added to my Github account.
It should be #angular/cli since angular/cli is a non existing npm-package:
npm -g install #angular/cli
the right command is :
npm install -g #angular/cli
you can check this to can start your app :
https://angular.io/guide/quickstart
Running npm install #google-cloud/speech gives:
npm WARN `git config --get remote.origin.url` returned wrong result (git://github.com/google-cloud/speech)
npm WARN `git config --get remote.origin.url` returned wrong result (git#github.com:google-cloud/speech)
npm ERR! git clone git#github.com:google-cloud/speech Cloning into bare repository 'C:\Users\Animesh\AppData\Roaming\npm-cache\_git-remotes\git-github-com-google-cloud-speech-00c2e0cb'...
npm ERR! git clone git#github.com:google-cloud/speech Host key verification failed.
npm ERR! git clone git#github.com:google-cloud/speech fatal: Could not read from remote repository.
npm ERR! git clone git#github.com:google-cloud/speech
npm ERR! git clone git#github.com:google-cloud/speech Please make sure you have the correct access rights
npm ERR! git clone git#github.com:google-cloud/speech and the repository exists.
npm ERR! addLocal Could not install google-cloud/speech
npm ERR! Error: ENOENT, stat 'E:\WebstormProjects\live-delfoi-speech-demo\google-cloud\speech'
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-#googlegroups.com>
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "#google-cloud/speech"
npm ERR! cwd E:\WebstormProjects\live-delfoi-speech-demo
npm ERR! node -v v0.10.13
npm ERR! npm -v 1.3.2
npm ERR! path E:\WebstormProjects\live-delfoi-speech-demo\google-cloud\speech
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! E:\WebstormProjects\live-delfoi-speech-demo\npm-debug.log
npm ERR! not ok code 0`
The official documentation say that I have the use that same command to install the specified version.
How can I correct it?
UPDATE
I noticed that the git repository has been moved to https://github.com/GoogleCloudPlatform/google-cloud-node.
This is because of your node version. You need to upgrade your node from 0.10 to some latest and stable version.
I followed the steps listed here http://sdk.gooddata.com/gooddata-js/getting-started/ to start setting up the local dev environment. However, I ran into this error when running the npm install command. Looks like I do not have access to copy the clone.
Here is more detail about the error:
new-host-2:gooddata-js zohebmunshi$ sudo npm install
Password:
Sorry, try again.
Password:
npm WARN package.json gooddata#0.0.13 No repository field.
The authenticity of host 'github.com (192.30.252.129)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
-|e you sure you want to continue connecting (yes/no)? \
-/ease type 'yes' or 'no': \
npm ERR! git clone git#github.com:gooddata/grunt-grizzly Cloning into bare repository '/Users/zohebmunshi/.npm/_git-remotes/git-github-com-gooddata-grunt-grizzly-41562694'...
npm ERR! git clone git#github.com:gooddata/grunt-grizzly Warning: Permanently added 'github.com,192.30.252.129' (RSA) to the list of known hosts.
npm ERR! git clone git#github.com:gooddata/grunt-grizzly Permission denied (publickey).
npm ERR! git clone git#github.com:gooddata/grunt-grizzly fatal: Could not read from remote repository.
npm ERR! git clone git#github.com:gooddata/grunt-grizzly
npm ERR! git clone git#github.com:gooddata/grunt-grizzly Please make sure you have the correct access rights
npm ERR! git clone git#github.com:gooddata/grunt-grizzly and the repository exists.
npm ERR! Error: Command failed: Cloning into bare repository '/Users/zohebmunshi/.npm/_git-remotes/git-github-com-gooddata-grunt-grizzly-41562694'...
npm ERR! Warning: Permanently added 'github.com,192.30.252.129' (RSA) to the list of known hosts.
npm ERR! Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! at ChildProcess.exithandler (child_process.js:648:15)
npm ERR! at ChildProcess.emit (events.js:98:17)
npm ERR! at maybeClose (child_process.js:756:16)
npm ERR! at Process.ChildProcess._handle.onexit (child_process.js:823:5)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/zohebmunshi/gooddata-js
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! code 128
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/zohebmunshi/gooddata-js/npm-debug.log
npm ERR! not ok code 0
I found this solution: It needs to be executed from command line.
root#edos-dp-dev-20 /var/www/phabricator # ./bin/repository pull M
Pulling 'M'...
Enter passphrase for key '/tmp/b40shoorty8kw4os/passphrase-ssh-key':
#'s password:
Done.
root#edos-dp-dev-20 /var/www/phabricator #
Note: Where M is Callsign of repository
Additional information are here: https://secure.phabricator.com/T4620
I need componentjs to build a javascript library taken from github.
Then I installed Node.js for Windows 64bits, and when I try to install componentjs or component-builder, I get the following errors that I don't understand:
C:\Users\Kevin>npm install component
npm WARN `git config --get remote.origin.url` returned wrong result (git://githu
b.com/ariya/esprima.git) undefined
npm WARN `git config --get remote.origin.url` returned wrong result (git://githu
b.com/ariya/esprima.git) undefined
npm ERR! git clone git://github.com/ariya/esprima.git undefined
npm ERR! git clone git://github.com/ariya/esprima.git undefined
npm ERR! not found: git
npm ERR!
npm ERR! Failed using git.
npm ERR! This is most likely not a problem with npm itself.
npm ERR! Please check if you have git installed and in your PATH.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "component"
npm ERR! cwd C:\Users\Kevin
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.23
npm ERR! code ENOGIT
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\Kevin\npm-debug.log
npm ERR! not ok code 0
Does anyone know what I'm doing wrong?
Problem solved, thanks to CD..
Just install msysgit (git for windows).
During the installation, it's prompted if you want to automatically add git to your PATH environment variable.