Ionic update failing


#1

Hi

I had this :

------------------------------------
Ionic CLI is out of date:
 * Locally installed version: 1.7.13
 * Latest version: 1.7.14
 * https://github.com/driftyco/ionic-cli/blob/master/CHANGELOG.md
 * Run npm install -g ionic to update
------------------------------------

So I updated my ionic :

sudo npm install ionic -g

npm WARN install:strip-ansi@1.0.0 ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/ionic/node_modules/npm/node_modules/columnify/node_modules/strip-ansi/cli.js'
npm WARN install:mkdirp@0.5.0 ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/ionic/node_modules/npm/node_modules/mkdirp/bin/cmd.js'
npm WARN install:nopt@3.0.1 ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/ionic/node_modules/npm/node_modules/nopt/bin/nopt.js'
npm WARN install:opener@1.3.0 ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/ionic/node_modules/npm/node_modules/opener/opener.js'
npm WARN install:rimraf@2.2.8 ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/ionic/node_modules/npm/node_modules/rimraf/bin.js'
npm WARN install:semver@4.0.0 ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/ionic/node_modules/npm/node_modules/semver/bin/semver'
npm WARN install:which@1.0.5 ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/ionic/node_modules/npm/node_modules/which/bin/which'

> node-sass@3.4.2 install /usr/local/lib/node_modules/ionic/node_modules/node-sass
> node scripts/install.js

Binary downloaded and installed at /usr/local/lib/node_modules/ionic/node_modules/node-sass/vendor/darwin-x64-46/binding.node

> spawn-sync@1.0.15 postinstall /usr/local/lib/node_modules/ionic/node_modules/spawn-sync
> node postinstall


> node-sass@3.4.2 postinstall /usr/local/lib/node_modules/ionic/node_modules/node-sass
> node scripts/build.js

` /usr/local/lib/node_modules/ionic/node_modules/node-sass/vendor/darwin-x64-46/binding.node ` exists. 
 testing binary.
Binary is fine; exiting.
/usr/local/lib
└── (empty)

npm WARN EBUNDLEOVERRIDE Replacing bundled ionic > npm with new installed version
npm ERR! code 1

And now I don’t have ionic anymore. I’ve tried to add the missing modules:

 sudo npm install strip-ansi -g
/usr/local/lib
└─┬ strip-ansi@3.0.0 
  └── ansi-regex@2.0.0 

 sudo npm install mkdirp -g
/usr/local/bin/mkdirp -> /usr/local/lib/node_modules/mkdirp/bin/cmd.js
/usr/local/lib
└─┬ mkdirp@0.5.1 
  └── minimist@0.0.8 

 sudo npm install nopt -g
/usr/local/bin/nopt -> /usr/local/lib/node_modules/nopt/bin/nopt.js
/usr/local/lib
└─┬ nopt@3.0.6 
  └── abbrev@1.0.7 

 sudo npm install opener -g
/usr/local/bin/opener -> /usr/local/lib/node_modules/opener/opener.js
/usr/local/lib
└── opener@1.4.1 

 sudo npm install rimraf -g
/usr/local/bin/rimraf -> /usr/local/lib/node_modules/rimraf/bin.js
/usr/local/lib
└─┬ rimraf@2.5.2 
  └─┬ glob@7.0.0 
    β”œβ”€β”¬ inflight@1.0.4 
    β”‚ └── wrappy@1.0.1 
    β”œβ”€β”€ inherits@2.0.1 
    β”œβ”€β”¬ minimatch@3.0.0 
    β”‚ └─┬ brace-expansion@1.1.3 
    β”‚   β”œβ”€β”€ balanced-match@0.3.0 
    β”‚   └── concat-map@0.0.1 
    β”œβ”€β”€ once@1.3.3 
    └── path-is-absolute@1.0.0 

 sudo npm install semver -g
/usr/local/bin/semver -> /usr/local/lib/node_modules/semver/bin/semver
/usr/local/lib
└── semver@5.1.0 

 sudo npm install which -g
/usr/local/bin/which -> /usr/local/lib/node_modules/which/bin/which
/usr/local/lib
└─┬ which@1.2.4 
  β”œβ”€β”¬ is-absolute@0.1.7 
  β”‚ └── is-relative@0.1.3 
  └── isexe@1.1.2 

But no luck. Any help would be very welcome.


#2

Did you upadted it via CMD or Git Bash?


#3

cmd …

but I fixed it :slight_smile:

I updated npm

sudo npm update -g

And after that the ionic update worked


#4

Nice :smiley: Good Luck on your upcoming Projects!


#5

thnx … I was really sweating cuz I have a deadline tomorrow I need to build the project


#6

What are you building right now? :smiley:


#7

Well the deadline project I cannot reveal yet, cz the client wants to present it tomorrow to the audience :slight_smile:

But I also have a pet project named LogoFyer (http://www.logofyer.com). The app is now in beta in Google and Apple store and users are testing it :slight_smile:


#8

Looks cool! If you understand localStorage, can you maybe take a look at a qeustion of minel. I have a problem :frowning: Its here on the ionicForum!


#9

mention me in your question :slight_smile: or post the url


#10