I am having problems creating a new Ionic2 project. I followed exactly the Installing Ionic for version 2 found here https://ionicframework.com/docs/v2/getting-started/installation/ and get the below error.
- I ran: ionic start myFirstProject --v2
2.Same thing happens with: ionic start myFirstProject blank --v2
Creating Ionic app in folder /devops/myFirstProject based on tabs project
Downloading: https://github.com/driftyco/ionic2-app-base/archive/master.zip
[=============================] 100% 0.0s
Downloading: https://github.com/driftyco/ionic2-starter-tabs/archive/master.zip
[=============================] 100% 0.0s
Installing npm packages...
npm WARN addRemoteGit Error: not found: git
npm WARN addRemoteGit at getNotFoundError (/home/oem/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/which/which.js:14:12)
npm WARN addRemoteGit at F (/home/oem/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/which/which.js:69:19)
npm WARN addRemoteGit at E (/home/oem/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/which/which.js:81:29)
npm WARN addRemoteGit at /home/oem/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/which/which.js:90:16
npm WARN addRemoteGit at /home/oem/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:44:5
npm WARN addRemoteGit at /home/oem/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/which/node_modules/isexe/access.js:8:5
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:123:15)
npm WARN addRemoteGit driftyco/localforage-cordovasqlitedriver#9803562a61c2172a69f3475f97e98922c0b49ac0 resetting remote /home/oem/.npm/_git-remotes/git-github-com-driftyco-localforage-cordovasqlitedriver-git-9803562a61c2172a69f3475f97e98922c0b49ac0-f7bfd5d6 because of error: { Error: not found: git
npm WARN addRemoteGit at getNotFoundError (/home/oem/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/which/which.js:14:12)
npm WARN addRemoteGit at F (/home/oem/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/which/which.js:69:19)
npm WARN addRemoteGit at E (/home/oem/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/which/which.js:81:29)
npm WARN addRemoteGit at /home/oem/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/which/which.js:90:16
npm WARN addRemoteGit at /home/oem/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:44:5
npm WARN addRemoteGit at /home/oem/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/which/node_modules/isexe/access.js:8:5
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:123:15) code: 'ENOGIT' }
npm ERR! git clone --template=/home/oem/.npm/_git-remotes/_templates --mirror git://github.com/driftyco/localforage-cordovasqlitedriver.git /home/oem/.npm/_git-remotes/git-github-com-driftyco-localforage-cordovasqlitedriver-git-9803562a61c2172a69f3475f97e98922c0b49ac0-f7bfd5d6: undefined
npm ERR! git clone --template=/home/oem/.npm/_git-remotes/_templates --mirror git://github.com/driftyco/localforage-cordovasqlitedriver.git /home/oem/.npm/_git-remotes/git-github-com-driftyco-localforage-cordovasqlitedriver-git-9803562a61c2172a69f3475f97e98922c0b49ac0-f7bfd5d6: undefined
npm WARN addRemoteGit Error: not found: git
npm WARN addRemoteGit at getNotFoundError (/home/oem/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/which/which.js:14:12)
npm WARN addRemoteGit at F (/home/oem/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/which/which.js:69:19)
npm WARN addRemoteGit at E (/home/oem/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/which/which.js:81:29)
npm WARN addRemoteGit at /home/oem/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/which/which.js:90:16
npm WARN addRemoteGit at /home/oem/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:44:5
npm WARN addRemoteGit at /home/oem/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/which/node_modules/isexe/access.js:8:5
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:123:15)
npm WARN addRemoteGit driftyco/localforage-cordovasqlitedriver#9803562a61c2172a69f3475f97e98922c0b49ac0 resetting remote /home/oem/.npm/_git-remotes/git-https-github-com-driftyco-localforage-cordovasqlitedriver-git-9803562a61c2172a69f3475f97e98922c0b49ac0-e715d57c because of error: { Error: not found: git
npm WARN addRemoteGit at getNotFoundError (/home/oem/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/which/which.js:14:12)
npm WARN addRemoteGit at F (/home/oem/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/which/which.js:69:19)
npm WARN addRemoteGit at E (/home/oem/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/which/which.js:81:29)
npm WARN addRemoteGit at /home/oem/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/which/which.js:90:16
npm WARN addRemoteGit at /home/oem/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:44:5
npm WARN addRemoteGit at /home/oem/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/which/node_modules/isexe/access.js:8:5
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:123:15) code: 'ENOGIT' }
npm ERR! git clone --template=/home/oem/.npm/_git-remotes/_templates --mirror https://github.com/driftyco/localforage-cordovasqlitedriver.git /home/oem/.npm/_git-remotes/git-https-github-com-driftyco-localforage-cordovasqlitedriver-git-9803562a61c2172a69f3475f97e98922c0b49ac0-e715d57c: undefined
npm ERR! git clone --template=/home/oem/.npm/_git-remotes/_templates --mirror https://github.com/driftyco/localforage-cordovasqlitedriver.git /home/oem/.npm/_git-remotes/git-https-github-com-driftyco-localforage-cordovasqlitedriver-git-9803562a61c2172a69f3475f97e98922c0b49ac0-e715d57c: undefined
npm WARN addRemoteGit Error: not found: git
npm WARN addRemoteGit at getNotFoundError (/home/oem/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/which/which.js:14:12)
npm WARN addRemoteGit at F (/home/oem/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/which/which.js:69:19)
npm WARN addRemoteGit at E (/home/oem/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/which/which.js:81:29)
npm WARN addRemoteGit at /home/oem/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/which/which.js:90:16
npm WARN addRemoteGit at /home/oem/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:44:5
npm WARN addRemoteGit at /home/oem/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/which/node_modules/isexe/access.js:8:5
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:123:15)
npm WARN addRemoteGit driftyco/localforage-cordovasqlitedriver#9803562a61c2172a69f3475f97e98922c0b49ac0 resetting remote /home/oem/.npm/_git-remotes/git-github-com-driftyco-localforage-cordovasqlitedriver-git-9803562a61c2172a69f3475f97e98922c0b49ac0-97e37af2 because of error: { Error: not found: git
npm WARN addRemoteGit at getNotFoundError (/home/oem/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/which/which.js:14:12)
npm WARN addRemoteGit at F (/home/oem/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/which/which.js:69:19)
npm WARN addRemoteGit at E (/home/oem/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/which/which.js:81:29)
npm WARN addRemoteGit at /home/oem/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/which/which.js:90:16
npm WARN addRemoteGit at /home/oem/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:44:5
npm WARN addRemoteGit at /home/oem/.nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/which/node_modules/isexe/access.js:8:5
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:123:15) code: 'ENOGIT' }
npm ERR! git clone --template=/home/oem/.npm/_git-remotes/_templates --mirror git@github.com:driftyco/localforage-cordovasqlitedriver.git /home/oem/.npm/_git-remotes/git-github-com-driftyco-localforage-cordovasqlitedriver-git-9803562a61c2172a69f3475f97e98922c0b49ac0-97e37af2: undefined
npm ERR! git clone --template=/home/oem/.npm/_git-remotes/_templates --mirror git@github.com:driftyco/localforage-cordovasqlitedriver.git /home/oem/.npm/_git-remotes/git-github-com-driftyco-localforage-cordovasqlitedriver-git-9803562a61c2172a69f3475f97e98922c0b49ac0-97e37af2: undefined
npm ERR! Linux 4.4.0-21-generic
npm ERR! argv "/home/oem/.nvm/versions/node/v6.9.1/bin/node" "/home/oem/.nvm/versions/node/v6.9.1/bin/npm" "install"
npm ERR! node v6.9.1
npm ERR! npm v3.10.9
npm ERR! code ENOGIT
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! Please include the following file with any support request:
npm ERR! /alfdev/myFirstProject/npm-debug.log
Error with start undefined
Error Initializing app: There was an error with the spawned command: npminstall
There was an error with the spawned command: npminstall
Caught exception:
undefined