I am pretty new to node.js and this is my first install using npm. I got a lot of ERR Lines which I am not sure whats going wrong with it.
I was trying to install TESTRPC in my OS X. just installed node js and using command
npm install -g ethereumjs-testrpc
but i got ERROR message
npm ERR! git clone --template=/Users/dion/.npm/_git-remotes/_templates
--mirror https://github.com/debris/bignumber.js.git
/Users/dion/.npm/_git-remotes/git-https-github-com-debris-bignumber-js-
git-master-df3f1ce1: Cloning into bare repository
'/Users/dion/.npm/_git-remotes/git-https-github-com-debris-bignumber-
js-git-master-df3f1ce1'...
npm ERR! git clone --template=/Users/dion/.npm/_git-remotes/_templates
--mirror https://github.com/debris/bignumber.js.git
/Users/dion/.npm/_git-remotes/git-https-github-com-debris-bignumber-js-
git-master-df3f1ce1: remote: Repository not found.
npm ERR! git clone --template=/Users/dion/.npm/_git-remotes/_templates
--mirror https://github.com/debris/bignumber.js.git
/Users/dion/.npm/_git-remotes/git-https-github-com-debris-bignumber-js-
git-master-df3f1ce1: fatal: repository
'https://github.com/debris/bignumber.js.git/' not found
npm ERR! Darwin 15.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g"
"ethereumjs-testrpc"
npm ERR! node v6.11.0
npm ERR! npm v3.10.10
npm ERR! code 128
npm ERR! Command failed: git clone --template=/Users/dion/.npm/_git-
remotes/_templates --mirror https://github.com/debris/bignumber.js.git
/Users/dion/.npm/_git-remotes/git-https-github-com-debris-bignumber-js-
git-master-df3f1ce1
npm ERR! Cloning into bare repository '/Users/dion/.npm/_git-
remotes/git-https-github-com-debris-bignumber-js-git-master-
df3f1ce1'...
npm ERR! remote: Repository not found.
npm ERR! fatal: repository
'https://github.com/debris/bignumber.js.git/' not found
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/dion/npm-debug.log
The problem is coming from one of the dependencies testRPC is using.
To be more precise Bignumber.js i think what happened is the developers added it by cloning the ssh link instead of https probably it's a forked version that's why.
Either it got solved now probably by the developers on their own so you just install it and it's perfect.
Or you use an older version that doesn't have this problem.
Or you manually clone the project change package.json and refrence bignumber.js by it's https link removing the .git in the end then run npm install
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
When I try to run the following command:
npm install #types/react
I get the following output:
npm ERR! git clone git#github.com:types/react Cloning into bare repository
'C:\Users\lifeg\AppDa
ta\Roaming\npm-cache\_git-remotes\git-github-com-types-react-e0f5ee6a'...
npm ERR! git clone git#github.com:types/react Host key verification failed.
npm ERR! git clone git#github.com:types/react fatal: Could not read from remote repository.
npm ERR! git clone git#github.com:types/react
npm ERR! git clone git#github.com:types/react Please make sure you have the correct access right
s
npm ERR! git clone git#github.com:types/react and the repository exists.
npm ERR! addLocal Could not install types/react
npm ERR! Error: ENOENT: no such file or directory, stat 'C:\Users\lifeg\Documents\GitRepositorie
s\Personal\ReactMarkdown\types\react'
npm ERR! at Error (native)
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 Windows_NT 10.0.14393
npm ERR! command "C:\\Program Files\\nodejs\\node.exe"
"C:\\ProgramData\\chocolatey\\lib\\npm\\t
ools\\node_modules\\npm\\bin\\npm-cli.js" "install" "#types/react"
npm ERR! cwd C:\Users\lifeg\Documents\GitRepositories\Personal\ReactMarkdown
npm ERR! node -v v6.8.1
npm ERR! npm -v 1.4.9
npm ERR! path C:\Users\lifeg\Documents\GitRepositories\Personal\ReactMarkdown\types\react
npm ERR! syscall stat
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\lifeg\Documents\GitRepositories\Personal\ReactMarkdown\npm-debug.log
npm ERR! not ok code 0
Note the versions of Node/NPM:
npm ERR! node -v v6.8.1
npm ERR! npm -v 1.4.9
Something about the output suggests that the package was not installed correctly.
I get similar results when I try to install other #types packages, but packages like react install properly.
I updated NPM and the same error occurred before and after the update (the output is after).
Performing npm cache clean did nothing.
The error seems to be related to git and SSH, even though install is supposed to try accessing git through HTTPS first, it doesn't seem to want to do that in this case.
The problem
Basically, at one time I had experimented with a Windows package manager called Chocolatey and used it to install node.
However, I later re-installed node and NPM using the official installer. The two installations existed side-by-side and caused a variety of strange side-effects.
One of them was that when I ran npm install -g npm and it would update the version of NPM that came with node using the version that came with chocolatey. This caused me to have an outdated version of NPM, which which is problematic when working with Git
Your npm is very old and it's probably not the one that comes with your node package.
I am currently developing a new PostCSS Plugin and therefore I create a new node_module subfolder. I made this subfolder a git repo, to share and publish the plugin.
When I am trying to install further modules to the project via "npm install" (gulp-watch in this case) I get the following error.
npm ERR! Darwin 15.6.0 npm ERR! argv "/Users/marten/.nvm/v5.5.0/bin/node" "/Users/marten/.nvm/v5.5.0/bin/npm" "i" "gulp-watch" "-D"
npm ERR! node v5.5.0 npm ERR! npm v3.3.12
npm ERR! path /Volumes/Web-Projects/_intern/marten/postcss-random/node_modules/postcss-random
npm ERR! code EISGIT
npm ERR! git Appears to be a git repo or submodule.
npm ERR! git /Volumes/Web-Projects/_intern/marten/postcss-random/node_modules/postcss-random
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! /Volumes/Web-Projects/_intern/marten/postcss-random/npm-debug.log
Is there any workarround for this particular problem? Can I tell npm to ignore my postcss plugin folder and to not try to remove it?
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 have node 0.12.0 installed, I installed it using NVM.
I have ember-cli installed, I have it using npm:
I installed it by:
sudo npm install -g ember-cli
Now though, when I try and run ember server on a brand new ember project, it makes me get 100s of modules, I have been doing it for about half an hour and using npm to install each module by hand. Is their a better way to do this, because this is a pain?
As well, I cant seem to get the node/debug module, so I am a bit stuck.
arie#arie-UX32VD:~/Desktop/programming/git/bostonember/ember$ sudo npm install debug/node
npm ERR! git clone git#github.com:debug/node Cloning into bare repository '/home/arie/.npm/_git-remotes/git-github-com-debug-node-65a3e6d9'...
npm ERR! git clone git#github.com:debug/node Permission denied (publickey).
npm ERR! git clone git#github.com:debug/node fatal: Could not read from remote repository.
npm ERR! git clone git#github.com:debug/node
npm ERR! git clone git#github.com:debug/node Please make sure you have the correct access rights
npm ERR! git clone git#github.com:debug/node and the repository exists.
npm ERR! addLocal Could not install debug/node
npm ERR! Error: ENOENT, stat 'debug/node'
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 Linux 3.16.0-34-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "debug/node"
npm ERR! cwd /home/arie/Desktop/programming/git/bostonember/ember
npm ERR! node -v v0.10.37
npm ERR! npm -v 1.4.28
npm ERR! path debug/node
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/arie/Desktop/programming/git/bostonember/ember/npm-debug.log
npm ERR! not ok code 0
You are getting confused because you have multiple versions of Node in your system. You installed it through nvm and probably you also have Node installed through apt-get, the later is the one that asks about sudo permissions, nvm would never do that.
sudo apt-get remove node
Completely remove node from your system and only use the binaries installed by nvm. You can verify that you are using the correct binaries with:
which node
expected output:
~/.nvm/v0.12.00/bin/node