Installing ionic via npm fails with shasum check failed on connect-2.25.6.tgz

Hi, I have never used node.js or most of the related Ionic technologies before, but I thought I would try it out. However, I am having some troubles installing it via npm.

I am using Windows 8.1 and the versions are in the error log below.

After trying to install cordova and ionic together as per the instructions on the Ionic websites, it fails with checksum error.

I managed to install cordova itself using:
npm -g install cordova.

Now I try:

npm -g install ionic

and get:

npm ERR! Error: shasum check failed for C:\Users\person\AppData\Local\Temp\npm-584
-BbDhP9LU\registry.npmjs.org\connect-\connect-2.25.6.tgz
npm ERR! Expected: dc1056a445811170eb86e0633bddaba8e28cd809
npm ERR! Actual: da39a3ee5e6b4b0d3255bfef95601890afd80709
npm ERR! From: https://registry.npmjs.org/connect/-/connect-2.25.6.tgz
npm ERR! at C:\Program Files\nodejs\node_modules\npm\node_modules\sha\index.
js:38:8
npm ERR! at ReadStream. (C:\Program Files\nodejs\node_modules\npm
\node_modules\sha\index.js:85:7)
npm ERR! at ReadStream.emit (events.js:117:20)
npm ERR! at _stream_readable.js:938:16
npm ERR! at process._tickCallback (node.js:419:13)
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues

npm ERR! System Windows_NT 6.2.9200
npm ERR! command “C:\Program Files\nodejs\\node.exe” “C:\Program Files\nod
ejs\node_modules\npm\bin\npm-cli.js” “-g” “install” "ionic"
npm ERR! cwd C:\Users\person
npm ERR! node -v v0.10.30
npm ERR! npm -v 1.4.21
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\person\npm-debug.log
npm ERR! not ok code 0

I did some Googling and some people mentioned trying to install the URL shown. So I also tried:
npm install https://registry.npmjs.org/connect/-/connect-2.25.6.tgz
and
npm -g install https://registry.npmjs.org/connect/-/connect-2.25.6.tgz

these get errors:

npm ERR! cb() never called!
npm ERR! not ok code 0

I also noticed people mention trying to run it several times on StackOverflow. So I have all the commands a few times and still get the same errors.

Any help would be appreciated.

Thanks!

Okay, now a couple of hours later and trying again it seems the problem is gone. It looks like I am ready to get my hands dirty with Ionic.

1 Like