Install/Setup of Ionic

When I installed ionic, etc, it seemed to put the code in IBM software delivery platform directory structure. I had assumed, that it would go where I was or ask me. The install did not follow the demo I saw…not the first to mention this I am sure. Is there any current install instructions for Ionic, cordova, etc? Please let me know. Thanks!

Tim

What demo are you following? Did you follow this guide: http://ionicframework.com/docs/guide/installation.html ?

Are you on windows, Mac OS X, Linux?

I followed the instructions from the getting started link: http://ionicframework.com/getting-started/ …I am on Mac 10.10.3. I just tried using the instructions you sent. I installed git, node.js, cordova, and ionic. I cannot initiate cordova or ionic from the command line…not sure where anything is getting installed. git, node, and npm all run from the command line.

Last login: Thu Apr 23 15:44:11 on ttys000
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
owings@Tims-MacBook-Pro:~$ git
usage: git [--version] [--help] [-C <path>] [-c name=value]
           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
           [-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
           <command> [<args>]

The most commonly used git commands are:
   add        Add file contents to the index
   bisect     Find by binary search the change that introduced a bug
   branch     List, create, or delete branches
   checkout   Checkout a branch or paths to the working tree
   clone      Clone a repository into a new directory
   commit     Record changes to the repository
   diff       Show changes between commits, commit and working tree, etc
   fetch      Download objects and refs from another repository
   grep       Print lines matching a pattern
   init       Create an empty Git repository or reinitialize an existing one
   log        Show commit logs
   merge      Join two or more development histories together
   mv         Move or rename a file, a directory, or a symlink
   pull       Fetch from and integrate with another repository or a local branch
   push       Update remote refs along with associated objects
   rebase     Forward-port local commits to the updated upstream head
   reset      Reset current HEAD to the specified state
   rm         Remove files from the working tree and from the index
   show       Show various types of objects
   status     Show the working tree status
   tag        Create, list, delete or verify a tag object signed with GPG

'git help -a' and 'git help -g' list available subcommands and some
concept guides. See 'git help <command>' or 'git help <concept>'
to read about a specific subcommand or concept.

Node

owings@Tims-MacBook-Pro:~$ node
> quit
ReferenceError: quit is not defined
    at repl:1:1
    at REPLServer.defaultEval (repl.js:132:27)
    at bound (domain.js:254:14)
    at REPLServer.runBound [as eval] (domain.js:267:12)
    at REPLServer.<anonymous> (repl.js:279:12)
    at REPLServer.emit (events.js:107:17)
    at REPLServer.Interface._onLine (readline.js:214:10)
    at REPLServer.Interface._line (readline.js:553:8)
    at REPLServer.Interface._ttyWrite (readline.js:830:14)
    at ReadStream.onkeypress (readline.js:109:10)
> q
ReferenceError: q is not defined
    at repl:1:1
    at REPLServer.defaultEval (repl.js:132:27)
    at bound (domain.js:254:14)
    at REPLServer.runBound [as eval] (domain.js:267:12)
    at REPLServer.<anonymous> (repl.js:279:12)
    at REPLServer.emit (events.js:107:17)
    at REPLServer.Interface._onLine (readline.js:214:10)
    at REPLServer.Interface._line (readline.js:553:8)
    at REPLServer.Interface._ttyWrite (readline.js:830:14)
    at ReadStream.onkeypress (readline.js:109:10)
> exit
ReferenceError: exit is not defined
    at repl:1:1
    at REPLServer.defaultEval (repl.js:132:27)
    at bound (domain.js:254:14)
    at REPLServer.runBound [as eval] (domain.js:267:12)
    at REPLServer.<anonymous> (repl.js:279:12)
    at REPLServer.emit (events.js:107:17)
    at REPLServer.Interface._onLine (readline.js:214:10)
    at REPLServer.Interface._line (readline.js:553:8)
    at REPLServer.Interface._ttyWrite (readline.js:830:14)
    at ReadStream.onkeypress (readline.js:109:10)
> 
(^C again to quit)
> 

npm

owings@Tims-MacBook-Pro:~$ npm

Usage: npm <command>

where <command> is one of:
    access, add-user, adduser, apihelp, author, bin, bugs, c,
    cache, completion, config, ddp, dedupe, deprecate, dist-tag,
    dist-tags, docs, edit, explore, faq, find, find-dupes, get,
    help, help-search, home, i, info, init, install, issues, la,
    link, list, ll, ln, login, logout, ls, outdated, owner,
    pack, prefix, prune, publish, r, rb, rebuild, remove, repo,
    restart, rm, root, run-script, s, se, search, set, show,
    shrinkwrap, star, stars, start, stop, t, tag, test, tst, un,
    uninstall, unlink, unpublish, unstar, up, update, upgrade,
    v, verison, version, view, whoami

npm <cmd> -h     quick help on <cmd>
npm -l           display full usage info
npm faq          commonly asked questions
npm help <term>  search for help on <term>
npm help npm     involved overview

Specify configs in the ini-formatted file:
    /Users/owings/.npmrc
or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config

npm@2.7.4 /usr/local/lib/node_modules/npm

install

owings@Tims-MacBook-Pro:~$ cd
owings@Tims-MacBook-Pro:~$  sudo npm install -g cordova
Password:
npm WARN engine cordova-js@3.9.0: wanted: {"node":"~0.10.x"} (current: {"node":"0.12.2","npm":"2.7.4"})
npm WARN engine npm@1.3.4: wanted: {"node":">=0.6","npm":"1"} (current: {"node":"0.12.2","npm":"2.7.4"})
npm WARN engine xmlbuilder@2.2.1: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"0.12.2","npm":"2.7.4"})
npm WARN installMany normalize-package-data was bundled with npm@1.3.4, but bundled package wasn't found in unpacked tree
/Users/owings/IBM/SoftwareDeliveryPlatform/cordova_cli/bin/cordova -> /Users/owings/IBM/SoftwareDeliveryPlatform/cordova_cli/lib/node_modules/cordova/bin/cordova
cordova@5.0.0 /Users/owings/IBM/SoftwareDeliveryPlatform/cordova_cli/lib/node_modules/cordova
├── underscore@1.7.0
├── q@1.0.1
├── nopt@3.0.1 (abbrev@1.0.5)
└── cordova-lib@5.0.0 (valid-identifier@0.0.1, osenv@0.1.0, properties-parser@0.2.3, bplist-parser@0.0.6, mime@1.2.11, unorm@1.3.3, semver@2.1.0, shelljs@0.3.0, dep-graph@1.1.0, rc@0.5.2, through2@0.6.3, npmconf@0.1.16, xcode@0.6.7, d8@0.4.4, elementtree@0.1.5, init-package-json@1.4.2, request@2.47.0, tar@1.0.2, glob@4.0.6, cordova-registry-mapper@1.1.0, plist@1.1.0, cordova-app-hello-world@3.9.0, npm@1.3.4, cordova-js@3.9.0)
owings@Tims-MacBook-Pro:~$  sudo npm install -g ionic
/Users/owings/IBM/SoftwareDeliveryPlatform/cordova_cli/bin/ionic -> /Users/owings/IBM/SoftwareDeliveryPlatform/cordova_cli/lib/node_modules/ionic/bin/ionic
ionic@1.3.20 /Users/owings/IBM/SoftwareDeliveryPlatform/cordova_cli/lib/node_modules/ionic
├── proxy-middleware@0.7.0
├── connect-livereload@0.5.2
├── progress@1.1.7
├── colors@0.6.2
├── open@0.0.5
├── ncp@0.4.2
├── underscore@1.7.0
├── crc@3.2.1
├── async@0.9.0
├── q@1.0.1
├── semver@4.3.1
├── shelljs@0.2.6
├── cross-spawn@0.2.3 (lru-cache@2.5.0)
├── event-stream@3.0.20 (stream-combiner@0.0.4, duplexer@0.1.1, from@0.1.3, pause-stream@0.0.11, map-stream@0.0.5, split@0.2.10, through@2.3.6)
├── finalhandler@0.2.0 (escape-html@1.0.1, debug@2.0.0)
├── connect@3.1.1 (utils-merge@1.0.0, parseurl@1.3.0, debug@1.0.4, finalhandler@0.1.0)
├── optimist@0.6.0 (wordwrap@0.0.2, minimist@0.0.10)
├── form-data@0.1.4 (mime@1.2.11, combined-stream@0.0.7)
├── cli-table@0.3.1 (colors@1.0.3)
├── opbeat-ionic@1.1.3 (json-stringify-safe@5.0.0, console-log-level@1.0.0, stackman@0.2.2, after-all@2.0.1)
├── serve-static@1.7.1 (utils-merge@1.0.0, escape-html@1.0.1, parseurl@1.3.0, send@0.10.1)
├── tiny-lr-fork@0.0.5 (debug@0.7.4, faye-websocket@0.4.4, qs@0.5.6, noptify@0.0.3)
├── xml2js@0.4.4 (sax@0.6.1, xmlbuilder@2.6.2)
├── npm@2.1.3
├── request@2.51.0 (caseless@0.8.0, json-stringify-safe@5.0.0, forever-agent@0.5.2, aws-sign2@0.5.0, stringstream@0.0.4, oauth-sign@0.5.0, tunnel-agent@0.4.0, node-uuid@1.4.3, qs@2.3.3, mime-types@1.0.2, combined-stream@0.0.7, tough-cookie@0.12.1, http-signature@0.10.1, form-data@0.2.0, bl@0.9.4, hawk@1.1.1)
├── prompt@0.2.12 (revalidator@0.1.8, pkginfo@0.3.0, read@1.0.5, winston@0.6.2, utile@0.2.1)
├── unzip@0.1.9 (setimmediate@1.0.2, pullstream@0.4.1, readable-stream@1.0.33, match-stream@0.0.2, binary@0.3.0, fstream@0.1.31)
├── archiver@0.5.1 (lodash@2.4.1, readable-stream@1.1.13, zip-stream@0.1.4, lazystream@0.1.0, file-utils@0.1.5)
├── vinyl-fs@0.3.7 (graceful-fs@3.0.6, strip-bom@1.0.0, lodash@2.4.1, mkdirp@0.5.0, vinyl@0.4.6, through2@0.6.3, glob-stream@3.1.18, glob-watcher@0.0.6)
└── gulp@3.8.8 (pretty-hrtime@0.2.2, interpret@0.3.10, deprecated@0.0.1, archy@0.0.2, minimist@1.1.1, semver@3.0.1, tildify@1.0.0, chalk@0.5.1, orchestrator@0.3.7, liftoff@0.12.1, gulp-util@3.0.4)
owings@Tims-MacBook-Pro:~$ ionic start todo blank
-bash: ionic: command not found
owings@Tims-MacBook-Pro:~$ pwd
/Users/owings
owings@Tims-MacBook-Pro:~$ 
owings@Tims-MacBook-Pro:~$ cordova
-bash: cordova: command not found
owings@Tims-MacBook-Pro:~$ pwd
/Users/owings
owings@Tims-MacBook-Pro:~$ 


owings@Tims-MacBook-Pro:~$ ionic start todo blank
-bash: ionic: command not found