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
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
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
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 having trouble installing the grunt command line interface, i get a whole lot of errors on the log when I try and install it using instructions off a tutorial website. I just added node.js from a package I downloaded off their website. Any help would be appreciated?
I used the following command as detailed on the roots WordPress instructions page
npm install -g grunt-cli
and this error message was returned
npm ERR! Error: Attempt to unlock grunt-cli, which hasn't been locked
npm ERR! at unlock (/usr/local/lib/node_modules/npm/lib/utils/locker.js:44:11)
npm ERR! at cb (/usr/local/lib/node_modules/npm/lib/cache/add-local.js:30:5)
npm ERR! at /usr/local/lib/node_modules/npm/lib/cache/add-local.js:47:20
npm ERR! at /usr/local/lib/node_modules/npm/lib/utils/locker.js:30:7
npm ERR! at /usr/local/lib/node_modules/npm/node_modules/lockfile/lockfile.js:167:38
npm ERR! at OpenReq.Req.done (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:144:5)
npm ERR! at OpenReq.done (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:64:22)
npm ERR! at Object.oncomplete (fs.js:107:15)
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.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "grunt-cli"
npm ERR! cwd /Users/jonbeech
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/jonbeech/npm-debug.log
npm ERR! not ok code 0
➜ ~
Run sudo npm install -g grunt-cli you need sudo privileges when installing something globally, or remove the -g switch.
Try to avoid needing sudo with npm, there are likely going to be other permissions errors. Here is what I did after installing npm with sudo:
Uninstall NPM: sudo npm uninstall npm -g
Install NVM so that I can install npm without needing sudo (similar to RVM), see: https://github.com/creationix/nvm#installation
Install latest npm: nvm install stable
Clear caches npm cache clear
and then everything worked
I've installed node on my debian squeeze dedicated server, but i can't install new mode module
ex : npm install async
Results :
root#....# npm install async
npm http GET https://registry.npmjs.org/async
npm ERR! Error: failed to fetch from registry: async
npm ERR! at /usr/local/lib/node_modules/npm/lib/utils/npm-registry-client/get.js:139:12
npm ERR! at cb (/usr/local/lib/node_modules/npm/lib/utils/npm-registry-client/request.js:32:9)
npm ERR! at Request._callback (/usr/local/lib/node_modules/npm/lib/utils/npm-registry-client/request.js:137:18)
npm ERR! at Request.callback (/usr/local/lib/node_modules/npm/node_modules/request/main.js:109:22)
npm ERR! at Request.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/main.js:198:58)
npm ERR! at Request.emit (events.js:88:20)
npm ERR! at ClientRequest.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/main.js:356:14)
npm ERR! at ClientRequest.emit (events.js:67:17)
npm ERR! at HTTPParser.onIncoming (http.js:1238:11)
npm ERR! at HTTPParser.onHeadersComplete (http.js:102:31)
npm ERR! 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!
npm ERR! System Linux 3.2.13-xxxx-std-ipv6-64
npm ERR! command "node" "/usr/local/bin/npm" "install" "async"
npm ERR! cwd /root
npm ERR! node -v v0.6.8
npm ERR! npm -v 1.1.0-2
npm ERR! message failed to fetch from registry: async
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/npm-debug.log
npm not ok
UPDATE (1/11/2015):
I now use NVM to manage my node/npm installation on both Linux and Unix. It's super simple; just follow these steps.
Install NVM.
$ curl https://raw.githubusercontent.com/creationix/nvm/v0.22.1/install.sh | bash
Use NVM to install the latest stable version of node and NPM.
$ nvm install stable
Tell NVM to use the stable version as the default version in future bash instances.
$ nvm alias default stable
Now you're all set with node & NPM. NVM even gets rid of the permissions issues with NPM global modules on Ubuntu, which normally requires you to chown or sudo and causes all sorts of frustration. You can use NVM to install different versions of node/NPM side by side as well. You can switch between installed versions with nvm use {version}, as long as you've done nvm install {version} already.
I think you may be running a really old version of node & npm. I see that node is v0.6.8 and npm is 1.1.0-2 when the current versions are 0.10.26 & 1.4.6 respectively. I'd try upgrading your node and npm installs and then try installing modules again and see if that fixes it for you.
Head over to http://nodejs.org and click the big green button in order to get the node installer. It will install both node & npm together.
Note: It's sometimes better not to install node/npm from a package manager unless you're confident the version listed in the package manager is the latest version. It's important to keep npm up to date. Npm even updates itself along with all your global node modules when you run npm update -g.