Automating icons and splash screens

I did everything as instructed here http://blog.ionic.io/automating-icons-and-splash-screens/

But my version of ionic does not have the ‘resources’ task. I try to upgrade my ionic setup but I got an error. I am looking into how to fix this, if you had this problem before and know how to get pass, let me know.

$ ionic resources

_ _

() ()


| |/ _ | '_ | |/ __|

| | (_) | | | | | (__

||___/|| |||___| CLI v1.2.8-beta1

Usage: ionic task args

=======================

resources is not a valid task

Available tasks: (use --help or -h for more info)

start … Starts a new Ionic project in the specified PATH

serve … Start a local development server for app dev/testing

platform … Add platform target for building an Ionic app

run … Run an Ionic project on a connected device

emulate … Emulate an Ionic project on a simulator or emulator

build … Locally build an Ionic project for a given platform

plugin … Add a Cordova plugin

package … Package an app using the Ionic Build service (beta)

upload … Upload an app to your Ionic account

lib … Gets Ionic library version or updates the Ionic library

setup … Configure the project with a build tool (beta)

$
$

$ npm install -g ionic

npm http GET https://registry.npmjs.org/ionic

npm http 200 https://registry.npmjs.org/ionic

npm http GET https://registry.npmjs.org/ionic/-/ionic-1.3.19.tgz

npm http 200 https://registry.npmjs.org/ionic/-/ionic-1.3.19.tgz

npm ERR! error rolling back Error: EACCES, unlink ‘/usr/local/bin/ionic’

npm ERR! error rolling back ionic@1.3.19 { [Error: EACCES, unlink ‘/usr/local/bin/ionic’] errno: 3, code: ‘EACCES’, path: ‘/usr/local/bin/ionic’ }

npm ERR! Error: EACCES, unlink ‘/usr/local/bin/ionic’

npm ERR! { [Error: EACCES, unlink ‘/usr/local/bin/ionic’] errno: 3, code: ‘EACCES’, path: ‘/usr/local/bin/ionic’ }

npm ERR!

npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Darwin 14.1.0

npm ERR! command “node” “/usr/local/bin/npm” “install” “-g” “ionic”

npm ERR! cwd /Users/gibranecastillo/Mobility/Mote/MTMobile

npm ERR! node -v v0.10.28

npm ERR! npm -v 1.4.9

npm ERR! path /usr/local/bin/ionic

npm ERR! code EACCES

npm ERR! errno 3

npm ERR! stack Error: EACCES, unlink ‘/usr/local/bin/ionic’

npm ERR!

npm ERR! Additional logging details can be found in:

npm ERR! /Users/gibranecastillo/Mobility/Mote/MTMobile/npm-debug.log

npm ERR! not ok code 0

$

Thank you,
Gibran

sudo npm -g install ionic -l

Thank you. I just did that and it works.