"ionic start" issue on Win 8.1 x64


#1

Hi there,
during the first installation I got some errors. I updated some generators (karma) and removed some of them (angular ui route generator) and everything worked fine.

Now when i try:

“ionic start myapp”

or

“ionic platform android”

I always get the following error:

“Error: ENOENT, no such file or directory 'E:\Users\Fabio.ionic’
at Object.fs.mkdirSync (fs.js:642:18)
at Object.module.exports.save (C:\Users\Fabio\AppData\Roaming\npm\node_modules\ionic\lib\ionic\config.js:36:10)
at Object.module.exports.create (C:\Users\Fabio\AppData\Roaming\npm\node_modules\ionic\lib\ionic\config.js:44:10)
at Object.module.exports.getConfig (C:\Users\Fabio\AppData\Roaming\npm\node_modules\ionic\lib\ionic\config.js:15:12)
at Object. (C:\Users\Fabio\AppData\Roaming\npm\node_modules\ionic\lib\ionic\stats.js:518:31)
at Module._compile (module.js:456:26)
at Object.Module._extensions…js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)”

Any suggestion?
Thanks in advance
Fabio

NOTE1: i already use Cordova, Npm, Generators and usually everything works fine
NOTE2: win8.1 x64 - npm 1.3.8


#2

UPDATE: THE FRAMEWORK WORKS GREAT BUT…!

  1. I have downloaded the “ionic-angular-cordova-seed” project
  2. CLI: “cordova platform add android”
  3. CLI: “phonegap install --device=481a8027 android”

RESULT: the AngularSeed Project works perfectly on a Samsung S4. Great works guys.

So I have 2 questions:

  1. Why I have the errors above?
  2. Do i really need to use the “ionic” command or can i just include your amazing framework in my AngularJS “standard” projects and work with Phonegap as I usually do?

Thank you very much
Fabio


#3

You don’t need to use the Ionic command at all. You can just add it to your angular project. Just download the files you need and put them in the header like this :

<link rel="stylesheet" href="css/ionic.css">

<script src="/js/ionic/ionic.min.js"></script>
<script src="/js/angular/angular.min.js"></script>
<script src="/js/angular/angular-animate.min.js"></script>
<script src="/js/angular/angular-route.min.js"></script>
<script src="/js/angular/angular-sanitize.min.js"></script>
<script src="/js/lib/angular-ui-router.min.js"></script>
<script src="/js/ionic/ionic-angular.min.js"></script>

Use whatever build process you like to minify, concat, or whatever you like to do.


#4

Perfect!
Anyway I’m making the first test and it’s amazing!
It’s exactly what I’m looking for a long time : )

Thank you very much!