Downloading Ionic Alpha CLI Issues

Has anyone had any issues downloading the latest alpha release of the CLI?

Running npm install -g ionic@alpha gives me the error:

npm ERR! tar.unpack untar error /tmp/npm-4817-c32de82d/registry.npmjs.org/tough-cookie/-/tough-cookie-2.0.0.tgz
npm ERR! tar.unpack untar error /tmp/npm-4817-c32de82d/registry.npmjs.org/tough-cookie/-/tough-cookie-2.0.0.tgz
npm ERR! tar.unpack untar error /tmp/npm-4817-c32de82d/registry.npmjs.org/glob/-/glob-4.0.6.tgz
npm ERR! tar.unpack untar error /tmp/npm-4817-c32de82d/registry.npmjs.org/glob/-/glob-4.0.6.tgz
npm ERR! Darwin 15.0.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "ionic@alpha"
npm ERR! node v0.12.7
npm ERR! npm  v3.3.9

npm ERR! unexpected eof
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/cameronbourke/npm-debug.log

I got this. Multiple errors. Not from downloading, it seems:

> spawn-sync@1.0.13 postinstall C:\Users\Colin\AppData\Roaming\npm\node_modules\
ionic\node_modules\ionic-app-lib\node_modules\cross-spawn\node_modules\spawn-syn
c
> node postinstall

-


> deasync@0.1.3 install C:\Users\Colin\AppData\Roaming\npm\node_modules\ionic\no
de_modules\ionic-app-lib\node_modules\awesome-typescript-loader\node_modules\dea
sync
> node ./build.js

`win32-x64-node-0.12` exists; testing
Binary is fine; exiting
-


> node-sass@3.3.3 install C:\Users\Colin\AppData\Roaming\npm\node_modules\ionic\
node_modules\ionic-app-lib\node_modules\node-sass
> node scripts/install.js

Binary downloaded and installed at C:\Users\Colin\AppData\Roaming\npm\node_modul
es\ionic\node_modules\ionic-app-lib\node_modules\node-sass\vendor\win32-x64-14\b
inding.node
\


> node-sass@3.3.3 postinstall C:\Users\Colin\AppData\Roaming\npm\node_modules\io
nic\node_modules\ionic-app-lib\node_modules\node-sass
> node scripts/build.js

` C:\Users\Colin\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-l
ib\node_modules\node-sass\vendor\win32-x64-14\binding.node ` exists.
 testing binary.
Binary is fine; exiting.
npm WARN optional dep failed, continuing fsevents@1.0.2
npm WARN optional dep failed, continuing fsevents@1.0.2
npm WARN optional dep failed, continuing fsevents@1.0.2
\


> utf-8-validate@1.2.1 install C:\Users\Colin\AppData\Roaming\npm\node_modules\i
onic\node_modules\ionic-app-lib\node_modules\browser-sync\node_modules\socket.io
\node_modules\engine.io\node_modules\ws\node_modules\utf-8-validate
> node-gyp rebuild

|
if not defined npm_config_node_gyp (node "c:\Program Files\nodejs\node_modules\n
pm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  els
e (node  rebuild ) les\utf-8-validate>
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
  validation.cc
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppBuild.targe
ts(1171,23): error MSB4198: The expression "DirectoryName" cannot be evaluated
on item "Release\obj\validation\validation.node.intermediate.manifest". The spe
cified path, file name, or both are too long. The fully qualified file name mus
t be less than 260 characters, and the directory name must be less than 248 cha
/racters. [C:\Users\Colin\AppData\Roaming\npm\node_modules\ionic\node_modules\io

e.io\node_modules\ws\node_modules\utf-8-validate\build\validation.vcxproj]engin
gyp ERR! build error
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (c:\Program Files\nodejs\node_modules\
npm\node_modules\node-gyp\lib\build.js:269:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074
:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "c:\\Program Files\\nodejs\\node_modules\\npm\\node_modu
les\\node-gyp\\bin\\node-gyp.js" "rebuild"
 ERR! cwd C:\Users\Colin\AppData\Roaming\npm\node_modules\ionic\node_modules\ion
ic-app-lib\node_modules\browser-sync\node_modules\socket.io\node_modules\engine.
io\node_modules\ws\node_modules\utf-8-validate
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
\


> bufferutil@1.2.1 install C:\Users\Colin\AppData\Roaming\npm\node_modules\ionic
\node_modules\ionic-app-lib\node_modules\browser-sync\node_modules\socket.io\nod
e_modules\engine.io\node_modules\ws\node_modules\bufferutil
> node-gyp rebuild

/
C:\Users\Colin\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib
\node_modules\browser-sync\node_modules\socket.io\node_modules\engine.io\node_mo
dules\ws\node_modules\bufferutil>if not defined npm_config_node_gyp (node "c:\Pr
ogram Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gy
p\bin\node-gyp.js" rebuild )  else (node  rebuild )
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
  bufferutil.cc
     Creating library C:\Users\Colin\AppData\Roaming\npm\node_modules\ionic\nod
/  e_modules\ionic-app-lib\node_modules\browser-sync\node_modules\socket.io\node

  Generating code.io\node_modules\ws\node_modules\bufferutil\build\Release\buff
\  Finished generating codeUsers\Colin\AppData\Roaming\npm\node_modules\ionic\n
  bufferutil.vcxproj -> C:\Users\Colin\AppData\Roaming\npm\node_modules\ionic\n
  ode_modules\ionic-app-lib\node_modules\browser-sync\node_modules\socket.io\no
  de_modules\engine.io\node_modules\ws\node_modules\bufferutil\build\Release\\b
  ufferutil.node
npm WARN optional dep failed, continuing utf-8-validate@1.2.1
npm WARN engine cordova-js@4.0.0: wanted: {"node":"~0.10.x"} (current: {"node":"
0.12.7","npm":"2.11.3"})


> utf-8-validate@1.2.1 install C:\Users\Colin\AppData\Roaming\npm\node_modules\i
onic\node_modules\ionic-app-lib\node_modules\browser-sync\node_modules\socket.io
\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\nod
e_modules\utf-8-validate
> node-gyp rebuild

\
C:\Users\Colin\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib
\node_modules\browser-sync\node_modules\socket.io\node_modules\socket.io-client\
node_modules\engine.io-client\node_modules\ws\node_modules\utf-8-validate>if not
 defined npm_config_node_gyp (node "c:\Program Files\nodejs\node_modules\npm\bin
\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (nod
e  rebuild )
Traceback (most recent call last):
  File "c:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\gyp_m
ain.py", line 18, in <module>
    sys.exit(gyp.script_main())
  File "c:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib
\gyp\__init__.py", line 533, in script_main
    return main(sys.argv[1:])
  File "c:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib
\gyp\__init__.py", line 526, in main
    return gyp_main(args)
  File "c:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib
\gyp\__init__.py", line 511, in gyp_main
    generator.GenerateOutput(flat_list, targets, data, params)
  File "c:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib
\gyp\generator\msvs.py", line 1985, in GenerateOutput
    generator_flags))
  File "c:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib
\gyp\generator\msvs.py", line 922, in _GenerateProject
    return _GenerateMSBuildProject(project, options, version, generator_flags)
  File "c:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib
\gyp\generator\msvs.py", line 3253, in _GenerateMSBuildProject
extension_to_rule_name)
  File "c:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib
\gyp\generator\msvs.py", line 2042, in _GenerateMSBuildFiltersFile
    easy_xml.WriteXmlIfChanged(content, filters_path, pretty=True, win32=True)
  File "c:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib
\gyp\easy_xml.py", line 134, in WriteXmlIfChanged
    f = open(path, 'w')
Errno 2] No such file or directory: 'C:\\Users\\Colin\\AppData\\Roaming\\npm\\no
de_modules\\ionic\\node_modules\\ionic-app-lib\\node_modules\\browser-sync\\node
_modules\\socket.io\\node_modules\\socket.io-client\\node_modules\\engine.io-cli
ent\\node_modules\\ws\\node_modules\\utf-8-validate\\build\\validation.vcxproj.f
ilters'
 yp| ERR! configure error
stack Error: `gyp` failed with exit code: 1
ERR! stack     at ChildProcess.onCpExit (c:\Program Files\nodejs\node_modules\np
m\node_modules\node-gyp\lib\configure.js:355:16)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074
:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "c:\\Program Files\\nodejs\\node_modules\\npm\\node_modu
les\\node-gyp\\bin\\node-gyp.js" "rebuild"
 cwd C:\Users\Colin\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-ap
p-lib\node_modules\browser-sync\node_modules\socket.io\node_modules\socket.io-cl
ient\node_modules\engine.io-client\node_modules\ws\node_modules\utf-8-validate
ERR! node -v v0.12.7
 v2.0.1! -node-gyp -v
gyp ERR! not ok
\


> bufferutil@1.2.1 install C:\Users\Colin\AppData\Roaming\npm\node_modules\ionic
\node_modules\ionic-app-lib\node_modules\browser-sync\node_modules\socket.io\nod
e_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_mo
dules\bufferutil
> node-gyp rebuild

|
C:\Users\Colin\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib
\node_modules\browser-sync\node_modules\socket.io\node_modules\socket.io-client\
node_modules\engine.io-client\node_modules\ws\node_modules\bufferutil>if not def
ined npm_config_node_gyp (node "c:\Program Files\nodejs\node_modules\npm\bin\nod
e-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node  r
ebuild )
Traceback (most recent call last):
  File "c:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\gyp_m
ain.py", line 18, in <module>
    sys.exit(gyp.script_main())
  File "c:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib
\gyp\__init__.py", line 533, in script_main
    return main(sys.argv[1:])
  File "c:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib
\gyp\__init__.py", line 526, in main
    return gyp_main(args)
  File "c:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib
\gyp\__init__.py", line 511, in gyp_main
    generator.GenerateOutput(flat_list, targets, data, params)
  File "c:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib
\gyp\generator\msvs.py", line 1985, in GenerateOutput
    generator_flags))
  File "c:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib
\gyp\generator\msvs.py", line 922, in _GenerateProject
    return _GenerateMSBuildProject(project, options, version, generator_flags)
  File "c:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib
\gyp\generator\msvs.py", line 3253, in _GenerateMSBuildProject
extension_to_rule_name)
  File "c:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib
\gyp\generator\msvs.py", line 2042, in _GenerateMSBuildFiltersFile
easy_xml.WriteXmlIfChanged(content, filters_path, pretty=True, win32=True)
    f = open(path, 'w')es\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pyli
IOError: [Errno 2] No such file or directory: 'C:\\Users\\Colin\\AppData\\Roamin
g\\npm\\node_modules\\ionic\\node_modules\\ionic-app-lib\\node_modules\\browser-
sync\\node_modules\\socket.io\\node_modules\\socket.io-client\\node_modules\\eng
ine.io-client\\node_modules\\ws\\node_modules\\bufferutil\\build\\bufferutil.vcx
proj.filters'
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (c:\Program Files\nodejs\node_module
s\npm\node_modules\node-gyp\lib\configure.js:355:16)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074
:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "c:\\Program Files\\nodejs\\node_modules\\npm\\node_modu
les\\node-gyp\\bin\\node-gyp.js" "rebuild"
 C:\Users\Colin\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-li
b\node_modules\browser-sync\node_modules\socket.io\node_modules\socket.io-client
\node_modules\engine.io-client\node_modules\ws\node_modules\bufferutil
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
npm WARN optional dep failed, continuing utf-8-validate@1.2.1
npm WARN optional dep failed, continuing bufferutil@1.2.1
npm WARN engine xmlbuilder@2.2.1: wanted: {"node":"0.8.x || 0.10.x"} (current: {
"node":"0.12.7","npm":"2.11.3"})
C:\Users\Colin\AppData\Roaming\npm\ionic -> C:\Users\Colin\AppData\Roaming\npm\n
ode_modules\ionic\bin\ionic
ionic@2.0.0-alpha.9 C:\Users\Colin\AppData\Roaming\npm\node_modules\ionic
├── proxy-middleware@0.7.0
├── connect-livereload@0.5.2
├── progress@1.1.7
├── colors@0.6.2
├── open@0.0.5
├── ncp@0.4.2
├── underscore@1.7.0
├── crc@3.2.1
├── q@1.0.1
├── async@0.9.2
├── request-progress@0.3.1 (throttleit@0.0.2)
├── shelljs@0.2.6
├── cross-spawn@0.2.3 (lru-cache@2.6.5)
├── semver@4.3.6
├── finalhandler@0.2.0 (escape-html@1.0.1, debug@2.0.0)
├── event-stream@3.0.20 (duplexer@0.1.1, stream-combiner@0.0.4, from@0.1.3, paus
e-stream@0.0.11, split@0.2.10, through@2.3.8, map-stream@0.0.6)
├── connect@3.1.1 (utils-merge@1.0.0, parseurl@1.3.0, finalhandler@0.1.0, debug@
1.0.4)
├── optimist@0.6.0 (wordwrap@0.0.3, minimist@0.0.10)
├── form-data@0.1.4 (mime@1.2.11, combined-stream@0.0.7)
├── cli-table@0.3.1 (colors@1.0.3)
├── serve-static@1.7.1 (utils-merge@1.0.0, escape-html@1.0.1, parseurl@1.3.0, se
nd@0.10.1)
├── tiny-lr-fork@0.0.5 (debug@0.7.4, faye-websocket@0.4.4, noptify@0.0.3, qs@0.5
.6)
├── unzip@0.1.9 (setimmediate@1.0.2, pullstream@0.4.1, readable-stream@1.0.33, m
atch-stream@0.0.2, binary@0.3.0, fstream@0.1.31)
├── request@2.51.0 (caseless@0.8.0, aws-sign2@0.5.0, forever-agent@0.5.2, string
stream@0.0.4, tunnel-agent@0.4.1, oauth-sign@0.5.0, json-stringify-safe@5.0.1, n
ode-uuid@1.4.3, qs@2.3.3, mime-types@1.0.2, combined-stream@0.0.7, bl@0.9.4, htt
p-signature@0.10.1, form-data@0.2.0, tough-cookie@2.0.0, hawk@1.1.1)
├── prompt@0.2.12 (revalidator@0.1.8, pkginfo@0.3.0, read@1.0.6, winston@0.6.2,
utile@0.2.1)
├── vinyl-fs@0.3.7 (graceful-fs@3.0.8, strip-bom@1.0.0, vinyl@0.4.6, mkdirp@0.5.
1, through2@0.6.5, glob-stream@3.1.18, lodash@2.4.2, glob-watcher@0.0.6)
├── gulp@3.8.8 (pretty-hrtime@0.2.2, interpret@0.3.10, deprecated@0.0.1, archy@0
.0.2, minimist@1.1.2, tildify@1.1.0, semver@3.0.1, chalk@0.5.1, orchestrator@0.3
.7, gulp-util@3.0.6, liftoff@0.12.1)
├── cheerio@0.19.0 (entities@1.1.1, dom-serializer@0.1.0, css-select@1.0.0, html
parser2@3.8.3, lodash@3.10.1)
├── xml2js@0.4.4 (sax@0.6.1, xmlbuilder@2.6.4)
├── npm@2.1.3
└── ionic-app-lib@0.5.0-alpha.9 (postcss@5.0.10, cross-spawn@2.0.0, winston@1.1.
0, postcss-loader@0.6.0, sass-loader@2.0.1, vinyl-fs@1.0.0, archiver@0.14.4, awe
some-typescript-loader@0.13.1, node-sass@3.3.3, typescript@1.6.2, webpack@1.12.2
    , auto

prefixer@6.0.3, babel@5.8.23, browser-sync@2.9.11, ionic-cordova-lib@5.1.1
0)

I’ve got it working now, turns out my 1.2mb/s internet couldn’t do the job. Didn’t get any errors on faster wifi haha.

I encountered the same error!
My node and the npm version is up to date, I try to use a stable version to install.
In addition to the 1.2mb/s internet, do you have any good suggestion?

This is really shitty thing… tried thrice !! Same is happening with me… !! my internet speed is good… !!
I even updated npm now… !!

Now ionic is broken… and is no getting installed !! Ionic Lab is working fine…but i want ionic cli too… :confounded:

Tell me the solution plz

Okay try uninstalling ionic first globally $ npm uninstall ionic -g

Then clear the npm cache $ npm cache clear

Then try reinstalling ionic through npm $ npm install ionic@alpha -g

The cache is what also caused me problems when initially trying to download ionic on a better internet connection.

C:\WINDOWS\system32>ionic -v
2.0.0-alpha.9

I’ve made it! Try to reinstall!

Windows 10(x64)
node v4.2.1(x86)
npm v2.14.7

had the same problem under

windows 10 (x64)
node v4.2.1
npm 3.3.9

I just left it running, after about 15min it magicaly completed. now:

ionic -v
2.0.0-alpha.9

I had also problem with installation in my case it was missing Python. I installed in 2.7 and now it works

you can try :

npm cache clean

then

clean user cache (C:\Users\UserName\AppData\Local\Temp) in windows

and try install agin ! it’s 100% ok !