question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ENOGIT on trying to start an Ionic2 project

See original GitHub issue

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.

Steps to reproduce:

  1. 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 

Mind letting us know? https://github.com/driftyco/ionic-cli/issues

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
karlpatrickespiritucommented, Oct 26, 2016
npm WARN addRemoteGit Error: not found: git

You probably don’t have git installed on your machine.

Download from: https://git-scm.com/

0reactions
MaheshJalodaracommented, Oct 28, 2016

when run ionic start demoApp sidemenu --v2 --ts

Creating Ionic app in folder /Users/bista-mac/Documents/demoApp based on sidemenu project Downloading: https://github.com/driftyco/ionic2-app-base/archive/master.zip [=============================] 100% 0.0s Downloading: https://github.com/driftyco/ionic2-starter-sidemenu/archive/master.zip2 https://github.com/driftyco/ionic2-starter-sidemenu/archive/master.zip [=============================] 100% 0.0s Installing npm packages… 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

this error occure

On 27 October 2016 at 21:11, kemety notifications@github.com wrote:

I am not sure if we are facing the same problem. I didn’t have git installed when I ran the command to start the ionic 2 project so that’s why I got the error. Once I installed git as per @karlpatrickespiritu https://github.com/karlpatrickespiritu recommendation, it worked.

"You probably don’t have git installed on your machine. Download from: https://git-scm.com/ "

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/driftyco/ionic-cli/issues/1590#issuecomment-256681006, or mute the thread https://github.com/notifications/unsubscribe-auth/AP1j16rfGsRXvqUjmfgW1SE04y-N-v4Qks5q4MYjgaJpZM4KgiTX .

Read more comments on GitHub >

github_iconTop Results From Across the Web

ENOENT error when doing ionic start
23 and started to get an error when created a new project using 'ionic start foo --v2 --verbose'. The error in red says...
Read more >
Proper way to initialize an Ionic project from existing sources
Let's say I have an existing Ionic project in a Git repository. If I clone this rep and try ionic start myapp blank...
Read more >
Unable to create new ionic project
hi, I am unable to create a new project of any kind(blank, tabs etc). When running “ionic start TestApp blank” I get these...
Read more >
Project Creation and Git - Appflow
Project Creation and Git. This tutorial uses Ionic Angular as the app framework/UI components and Capacitor to deploy the app to iOS and...
Read more >
Ionic Tutorial #2 - Structure and open source project on github
After we started the project for my new startup Reciclica with the Ionic Framework, in this video I will show you the structure...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found