{"action":"created","issue":{"url":"https://api.github.com/repos/driftyco/ionic-cli/issues/388","labels_url":"https://api.github.com/repos/driftyco/ionic-cli/issues/388/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic-cli/issues/388/comments","events_url":"https://api.github.com/repos/driftyco/ionic-cli/issues/388/events","html_url":"https://github.com/driftyco/ionic-cli/issues/388","id":69646432,"number":388,"title":"Not possible to use \"npm install ionic\" without -g","user":{"login":"jacargentina","id":517228,"avatar_url":"https://avatars.githubusercontent.com/u/517228?v=3","gravatar_id":"","url":"https://api.github.com/users/jacargentina","html_url":"https://github.com/jacargentina","followers_url":"https://api.github.com/users/jacargentina/followers","following_url":"https://api.github.com/users/jacargentina/following{/other_user}","gists_url":"https://api.github.com/users/jacargentina/gists{/gist_id}","starred_url":"https://api.github.com/users/jacargentina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacargentina/subscriptions","organizations_url":"https://api.github.com/users/jacargentina/orgs","repos_url":"https://api.github.com/users/jacargentina/repos","events_url":"https://api.github.com/users/jacargentina/events{/privacy}","received_events_url":"https://api.github.com/users/jacargentina/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-20T18:09:29Z","updated_at":"2015-04-28T21:56:08Z","closed_at":"2015-04-28T21:56:08Z","body":"May be the npm package is not prepared to handle a local installation of cordova + ionic?\r\n\r\nI've tried doing:\r\n\r\n    mkdir ionic-app && cd ionic-app\r\n    npm install cordova ionic --save\r\n    ionic start ionic-client sidemenu\r\n\r\nAnd it starts building the app, but it fails later. The output as is:\r\n\r\n````\r\nCreating Ionic app in folder /home/USER/javascript/ionicapp/ionicclient based on sidemenu project\r\n\r\nDownloading: https://github.com/driftyco/ionic-app-base/archive/master.zip\r\n[=============================]  100%  0.0s\r\n\r\nDownloading: https://github.com/driftyco/ionic-starter-sidemenu/archive/master.zip\r\n[=============================]  100%  0.0s\r\n\r\nUpdate config.xml\r\nInitializing cordova project\r\n/bin/sh: ionic: no se encontró la orden\r\nUnable to add plugins. Perhaps your version of Cordova is too old. Try updating (npm install -g cordova), removing this project folder, and trying again. (CLI v1.3.20)\r\n\r\nYour system information:\r\n\r\nOS: Distributor ID:\tFedora Description:\tFedora release 21 (Twenty One) \r\nNode Version: v0.10.36\r\nCordova CLI: Not installed\r\nIonic Version: 1.0.0-rc.3\r\nIonic CLI Version: 1.3.20\r\n````\r\n\r\nI want to avoid a npm global (-g) install, to avoid messing up my actual global packages/etc.\r\nBTW, to make it work without global install, i've added to my .bash_profile this:\r\n\r\n    PATH=./node_modules/.bin:$PATH\r\n\r\nSo , if i'm inside /home/USER/javascript/ionicapp/, i can run \"cordova\" or \"ionic\" without problem.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/driftyco/ionic-cli/issues/comments/97237198","html_url":"https://github.com/driftyco/ionic-cli/issues/388#issuecomment-97237198","issue_url":"https://api.github.com/repos/driftyco/ionic-cli/issues/388","id":97237198,"user":{"login":"jbavari","id":1414692,"avatar_url":"https://avatars.githubusercontent.com/u/1414692?v=3","gravatar_id":"","url":"https://api.github.com/users/jbavari","html_url":"https://github.com/jbavari","followers_url":"https://api.github.com/users/jbavari/followers","following_url":"https://api.github.com/users/jbavari/following{/other_user}","gists_url":"https://api.github.com/users/jbavari/gists{/gist_id}","starred_url":"https://api.github.com/users/jbavari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbavari/subscriptions","organizations_url":"https://api.github.com/users/jbavari/orgs","repos_url":"https://api.github.com/users/jbavari/repos","events_url":"https://api.github.com/users/jbavari/events{/privacy}","received_events_url":"https://api.github.com/users/jbavari/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T21:56:08Z","updated_at":"2015-04-28T21:56:08Z","body":"The CLI is set up to run as a global and we dont have much plans to change this. :8ball: "}}