@Mik378 if you are a windows user run the node command as administrator npm update -g ionic.I also got the same error initially then it fixed up by running command in admin user.
But after trying ionic serve --lab command.The app is still serve in the Browser not in the lab as said in the blog.
@mhartington@Mik378 I have checked the CLI Version it was 1.0.13 after .I used to install the latest ionic CLI now its says the versiion is 1.0.14 .I dint get 1.2.13 Version.
Hmm, this could be conflict with a local copy of the ionic repo.
Do you have the ionic repo cloned in the directory where you are trying to update the ionic-cli?
Try changing you location when you install the cli.
So say you’re trying to ru npm install -g ionic and you’re trying to run that in ~/, try changing to either desktop, documents or another directory.