I searched really much forums allready to finde something like this, and I found similar things but none helped me. Make you know whats up.
I just installed fresh ubuntu, and there I installed vim, git and node.js. Now I want to install also npm, but then I get error. A bunch of them tbh:
kuba@ubuntu:~/lgv$ npm install
npm WARN deprecated tsml@1.0.1: no longer maintained
npm WARN addRemoteGit Error: Command failed: git config --get remote.origin.url
npm WARN addRemoteGit
npm WARN addRemoteGit at ChildProcess.exithandler (child_process.js:275:12)
npm WARN addRemoteGit at emitTwo (events.js:126:13)
npm WARN addRemoteGit at ChildProcess.emit (events.js:214:7)
npm WARN addRemoteGit at maybeClose (internal/child_process.js:925:16)
npm WARN addRemoteGit at Socket.stream.socket.on (internal/child_process.js:346:11)
npm WARN addRemoteGit at emitOne (events.js:116:13)
npm WARN addRemoteGit at Socket.emit (events.js:211:7)
npm WARN addRemoteGit at Pipe._handle.close [as
_onclose] (net.js:567:12)
npm WARN addRemoteGit git+https://bitbucket.org/lgv-g12/lgv-config.git resetting remote /home/kuba/.npm/_git-remotes/git-https-bitbucket-org-lgv-g12-lgv-config-git-d9c0735f because of error: { Error: Command failed: git config --get remote.origin.url
npm WARN addRemoteGit
npm WARN addRemoteGit at ChildProcess.exithandler (child_process.js:275:12)
npm WARN addRemoteGit at emitTwo (events.js:126:13)
npm WARN addRemoteGit at ChildProcess.emit (events.js:214:7)
npm WARN addRemoteGit at maybeClose (internal/child_process.js:925:16)
npm WARN addRemoteGit at Socket.stream.socket.on (internal/child_process.js:346:11)
npm WARN addRemoteGit at emitOne (events.js:116:13)
npm WARN addRemoteGit at Socket.emit (events.js:211:7)
npm WARN addRemoteGit at Pipe._handle.close [as _onclose] (net.js:567:12)
npm WARN addRemoteGit killed: false,
npm WARN addRemoteGit code: 1,
npm WARN addRemoteGit signal: null,
npm WARN addRemoteGit cmd: 'git config --get remote.origin.url' }
npm ERR! git clone
--template=/home/kuba/.npm/_git-remotes/_templates --mirror https://bitbucket.org/lgv-g12/lgv-config.git /home/kuba/.npm/_git-remotes/git-https-bitbucket-org-lgv-g12-lgv-config-git-d9c0735f: Cloning into bare repository '/home/kuba/.npm/_git-remotes/git-https-bitbucket-org-lgv-g12-lgv-config-git-d9c0735f'...
npm ERR! git clone --template=/home/kuba/.npm/_git-remotes/_templates
--mirror https://bitbucket.org/lgv-g12/lgv-config.git /home/kuba/.npm/_git-remotes/git-https-bitbucket-org-lgv-g12-lgv-config-git-d9c0735f: remote: Invalid username or password
npm ERR! git clone
--template=/home/kuba/.npm/_git-remotes/_templates --mirror https://bitbucket.org/lgv-g12/lgv-config.git /home/kuba/.npm/_git-remotes/git-https-bitbucket-org-lgv-g12-lgv-config-git-d9c0735f: fatal: Authentication failed for 'https://bitbucket.org/lgv-g12/lgv-config.git/'
npm ERR! Linux
4.18.0-15-generic npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v8.10.0 npm ERR! npm v3.5.2
npm ERR! code 128
npm ERR! Command failed: git clone
--template=/home/kuba/.npm/_git-remotes/_templates --mirror https://bitbucket.org/lgv-g12/lgv-config.git /home/kuba/.npm/_git-remotes/git-https-bitbucket-org-lgv-g12-lgv-config-git-d9c0735f
npm ERR! Cloning into bare repository '/home/kuba/.npm/_git-remotes/git-https-bitbucket-org-lgv-g12-lgv-config-git-d9c0735f'...
npm ERR! remote: Invalid username or password
npm ERR! fatal: Authentication failed for 'https://bitbucket.org/lgv-g12/lgv-config.git/'
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! /home/kuba/lgv/npm-debug.log
kuba@ubuntu:~/lgv$
Maybe you know what I messed up. Its allready my secound linux machine I get those errors from, and nothing can really help me to fix the issue.
On an Ubuntu machine (and Debian etc.) using apt-get, install npm via:
sudo apt-get install npm
You used the command
npm install
This command is used to install the dependencies of your node.js project, stated in your package.json.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.