Thursday, 22 October 2015

Mulai Menggunakan Ionic Framework

Status : Draft

Instalasi

OS X

Menggunakan XCode 7.
Burhanuddin:~ BURHAN$ sudo npm install ionic -gPassword:
> spawn-sync@1.0.13 postinstall /usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/cross-spawn/node_modules/spawn-sync> node postinstall
npm ERR! tar.unpack untar error /tmp/npm-7037-734374a4/registry.npmjs.org/lodash/-/lodash-3.10.1.tgznpm ERR! tar.unpack untar error /tmp/npm-7037-734374a4/registry.npmjs.org/qs/-/qs-0.5.6.tgznpm ERR! tar.unpack untar error /tmp/npm-7037-734374a4/registry.npmjs.org/tough-cookie/-/tough-cookie-2.2.0.tgznpm ERR! Darwin 14.5.0npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "ionic" "-g"npm ERR! node v4.2.1npm ERR! npm  v2.12.1npm ERR! code ECONNRESETnpm ERR! errno ECONNRESETnpm ERR! syscall read
npm ERR! network read ECONNRESETnpm ERR! network This is most likely not a problem with npm itselfnpm ERR! network and is related to network connectivity.npm ERR! network In most cases you are behind a proxy or have bad network settings.npm ERR! network npm ERR! network If you are behind a proxy, please make sure that thenpm ERR! network 'proxy' config is set properly.  See: 'npm help config'\> node-sass@3.3.3 install /usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/node-sass
> node scripts/install.jsBinary downloaded and installed at /usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/node-sass/vendor/darwin-x64-46/binding.node
> node-sass@3.3.3 postinstall /usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/node-sass> node scripts/build.js
` /usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/node-sass/vendor/darwin-x64-46/binding.node ` exists.  testing binary.Binary is fine; exiting.

Jika sudah dicoba berkali-kali masih mendapatkan error yang sama, coba gunakan koneksi internet yang lain, misal dari jaringan mobile lain (saya mencoba dengan jaringan XL), Alhamdulillah, proses instalasi ionic berhasil. 

Ketika mengupload dengan Xcode 7, yang sebelumnya menggunakan Xcode 6, gagal, berikut response nya : 



Solusinya bisa dilihat di [3]

Referensi

  1. Downloads for Apple Developers, https://developer.apple.com/downloads/
  2. npm not working - “read ECONNRESET”, http://stackoverflow.com/questions/18419144/npm-not-working-read-econnreset
  3. How to disable iOS9 multitasking through Ionic/Cordova?, http://forum.ionicframework.com/t/how-to-disable-ios9-multitasking-through-ionic-cordova/33242
  4.  Preparing for iOS 9, http://blog.ionic.io/preparing-for-ios-9/

No comments:

Post a comment