Hey,
I installed pimatic and some other stuff on a fresh rpi3 to test some things and play a litte bit aside my productive system. When trying to install it globally with sudo npm link
I get the following error:
~/pimatic-app/node_modules/pimatic $ sudo npm link
npm WARN addRemoteGit Error: Command failed: git config --get remote.origin.url
npm WARN addRemoteGit
npm WARN addRemoteGit at ChildProcess.exithandler (child_process.js:213:12)
npm WARN addRemoteGit at emitTwo (events.js:87:13)
npm WARN addRemoteGit at ChildProcess.emit (events.js:172:7)
npm WARN addRemoteGit at maybeClose (internal/child_process.js:829:16)
npm WARN addRemoteGit at Socket.<anonymous> (internal/child_process.js:319:11)
npm WARN addRemoteGit at emitOne (events.js:77:13)
npm WARN addRemoteGit at Socket.emit (events.js:169:7)
npm WARN addRemoteGit at Pipe._onclose (net.js:486:12)
npm WARN addRemoteGit git+https://github.com/sweetpi/jsonlint.git#master resetting remote /root/.npm/_git-remotes/https-github-com-sweetpi-jsonlint-git-fccf491e because of error: { [Error: Command failed: git config --get remote.origin.url
npm WARN addRemoteGit ]
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=/root/.npm/_git-remotes/_templates --mirror https://github.com/sweetpi/jsonlint.git /root/.npm/_git-remotes/https-github-com-sweetpi-jsonlint-git-fccf491e: Please run git without sudo, your regular user account is enough :)
npm ERR! Linux 4.1.19-v7+
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "link"
npm ERR! node v4.5.0
npm ERR! npm v2.15.9
npm ERR! code 1
npm ERR! Command failed: git clone --template=/root/.npm/_git-remotes/_templates --mirror https://github.com/sweetpi/jsonlint.git /root/.npm/_git-remotes/https-github-com-sweetpi-jsonlint-git-fccf491e
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/pi/pimatic-app/node_modules/pimatic/npm-debug.log
Does this has something to do with me not doing the normal node.js install process but using a update-script from node-red? I installed node-red with the onboard node.js, then apt-get upgrade and script update-nodejs-and-nodered.
.