Ionic problem installation


#1

please I have installation problems Ionic someone can help me and thank you in advance.
$ npm install -g ionic
npm ERR! Windows_NT 6.1.7600
npm ERR! argv “c:\Program Files\nodejs\node.exe” “c:\Program Files\n
node_modules\npm\bin\npm-cli.js” “install” “-g” "ionic"
npm ERR! node v0.12.2
npm ERR! npm v2.7.4
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! syscall read

npm ERR! network read ECONNRESET
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network
gs.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network ‘proxy’ config is set properly. See: 'npm help config’
npm ERR! Windows_NT 6.1.7600
npm ERR! argv “c:\Program Files\nodejs\node.exe” “c:\Program Files\n
node_modules\npm\bin\npm-cli.js” “install” “-g” "ionic"
npm ERR! node v0.12.2
npm ERR! npm v2.7.4
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! syscall read

npm ERR! network read ECONNRESET
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network
gs.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network ‘proxy’ config is set properly. See: 'npm help config’
npm ERR! Windows_NT 6.1.7600
npm ERR! argv “c:\Program Files\nodejs\node.exe” “c:\Program Files\n
node_modules\npm\bin\npm-cli.js” “install” “-g” "ionic"
npm ERR! node v0.12.2
npm ERR! npm v2.7.4
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! syscall read

npm ERR! network read ECONNRESET
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network
gs.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network ‘proxy’ config is set properly. See: 'npm help config’
npm ERR! Windows_NT 6.1.7600
npm ERR! argv “c:\Program Files\nodejs\node.exe” “c:\Program Files\n
node_modules\npm\bin\npm-cli.js” “install” “-g” "ionic"
npm ERR! node v0.12.2
npm ERR! npm v2.7.4
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! syscall read

npm ERR! network read ECONNRESET
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network
gs.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network ‘proxy’ config is set properly. See: 'npm help config’
npm ERR! Windows_NT 6.1.7600
npm ERR! argv “c:\Program Files\nodejs\node.exe” “c:\Program Files\n
node_modules\npm\bin\npm-cli.js” “install” “-g” "ionic"
npm ERR! node v0.12.2
npm ERR! npm v2.7.4
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! syscall read

npm ERR! network read ECONNRESET
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network
gs.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network ‘proxy’ config is set properly. See: 'npm help config’
version npm est 2.7.4
node version 0.12.2


#2

Did you run windows command (cmd.exe) with administrator privileges ? Right click run as administrator?


#3

so how to run command with administrator privileges???


#4

Windows 8

Windows 7/vista


#5

I have same problem in windows NT, nod v0.12.2 and npm v2.7.4. I am running Git Bash as an administrator. also tried in command prompt. I can install other node packages but for ionic, it’s taking hours and eventually it gives same error as fatmaa has mentioned. Is there something wrong with the installation package server of ionic?

Anyone else experienced this problem?


#6

Hi fatmaa,
I had the same problem when I tried to install ionic at my home. It must be some network problem with my ISP. I didn’t have any proxies but still the ionic wouldn’t install. But when I tried installing in my office in the same laptop, it got installed easily. I still don’t know what was wrong with my ISP or connection. I use wireless connection with my ISP at home and the internet connection in my office is wired.

Try installing ionic using some other network, it might get installed.


#7

thank you @helsen, this solved my days old problem :smile:


#8

I had the same problem.
As I’m using a towerpc, I could not take it easyliy to an other place.
so I waited an waited and left npm running, after about 10min it completed with an error but still sucessful.
strange though.

[…]
npm ERR! Windows_NT 6.3.9600
npm ERR! argv “node” “C:\Users\elso\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js” “i
nstall” “-g” "ionic"
npm ERR! node v0.12.4
npm ERR! npm v2.11.2
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! syscall read

npm ERR! network read ECONNRESET
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network ‘proxy’ config is set properly. See: 'npm help config’
npm WARN installMany normalize-package-data was bundled with npm@1.3.4, but bundled package wasn’t f
ound in unpacked tree
C:\Users\elso\AppData\Roaming\npm\ionic -> C:\Users\elso\AppData\Roaming\npm\node_modules\ionic\bin
ionic
ionic@1.5.0 C:\Users\elso\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
├── underscore@1.7.0
├── ncp@0.4.2
├── crc@3.2.1
├── q@1.0.1
├── async@0.9.2
├── shelljs@0.2.6
├── semver@4.3.6
├── cross-spawn@0.2.3 (lru-cache@2.6.4)
├── cli-table@0.3.1 (colors@1.0.3)
├── event-stream@3.0.20 (stream-combiner@0.0.4, duplexer@0.1.1, from@0.1.3, map-stream@0.0.5, split@
0.2.10, pause-stream@0.0.11, through@2.3.7)
├── opbeat-ionic@1.1.3 (console-log-level@1.0.0, json-stringify-safe@5.0.1, stackman@0.2.2, after-al
l@2.0.2)
├── optimist@0.6.0 (wordwrap@0.0.3, minimist@0.0.10)
├── npm@2.1.3
├── tiny-lr-fork@0.0.5 (debug@0.7.4, faye-websocket@0.4.4, qs@0.5.6, noptify@0.0.3)
├── unzip@0.1.9 (setimmediate@1.0.2, pullstream@0.4.1, readable-stream@1.0.33, match-stream@0.0.2, b
inary@0.3.0, fstream@0.1.31)
├── finalhandler@0.2.0 (escape-html@1.0.1, debug@2.0.0)
├── vinyl-fs@0.3.7 (graceful-fs@3.0.8, vinyl@0.4.6, lodash@2.4.2, strip-bom@1.0.0, mkdirp@0.5.1, thr
ough2@0.6.5, glob-stream@3.1.18, glob-watcher@0.0.6)
├── connect@3.1.1 (utils-merge@1.0.0, parseurl@1.3.0, debug@1.0.4, finalhandler@0.1.0)
├── form-data@0.1.4 (mime@1.2.11, combined-stream@0.0.7)
├── serve-static@1.7.1 (utils-merge@1.0.0, escape-html@1.0.1, parseurl@1.3.0, send@0.10.1)
├── request@2.51.0 (caseless@0.8.0, aws-sign2@0.5.0, forever-agent@0.5.2, stringstream@0.0.4, oauth-
sign@0.5.0, tunnel-agent@0.4.0, json-stringify-safe@5.0.1, qs@2.3.3, node-uuid@1.4.3, mime-types@1.0
.2, combined-stream@0.0.7, bl@0.9.4, tough-cookie@1.2.0, http-signature@0.10.1, form-data@0.2.0, haw
k@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)
├── xml2js@0.4.4 (sax@0.6.1, xmlbuilder@2.6.4)
├── cheerio@0.19.0 (entities@1.1.1, dom-serializer@0.1.0, lodash@3.9.3, css-select@1.0.0, htmlparser
2@3.8.2)
├── archiver@0.5.1 (readable-stream@1.1.13, lazystream@0.1.0, zip-stream@0.1.4, lodash@2.4.2, file-u
tils@0.1.5)
├── gulp@3.8.8 (interpret@0.3.10, pretty-hrtime@0.2.2, deprecated@0.0.1, archy@0.0.2, minimist@1.1.1
, semver@3.0.1, tildify@1.0.0, chalk@0.5.1, orchestrator@0.3.7, gulp-util@3.0.5, liftoff@0.12.1)
└── ionic-app-lib@0.1.0 (cordova-lib@5.0.0)
npm ERR! Windows_NT 6.3.9600
npm ERR! argv “node” “C:\Users\elso\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js” “i
nstall” “-g” "ionic"
npm ERR! node v0.12.4
npm ERR! npm v2.11.2

npm ERR! Callback called more than once.
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! C:\WINDOWS\system32\npm-debug.log

C:\WINDOWS\system32>ionic
_ _
() ()


| |/ _ | '_ | |/ |
| | (_) | | | | | (

||___/|| |||___| CLI v1.5.0

Usage: ionic task args

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

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
resources … Automatically create icon and splash screen resources (beta)
Put your images in the ./resources directory, named splash or icon.
Accepted file types are .png, .ai, and .psd.
Icons should be 192x192 px without rounded corners.
Splashscreens should be 2208x2208 px, with the image centered in the middle.

package … Package an app using the Ionic Build service (beta)
upload … Upload an app to your Ionic account
share … Share an app with a client, co-worker, friend, or customer
lib … Gets Ionic library version or updates the Ionic library
setup … Configure the project with a build tool (beta)
browser … Add another browser for a platform (beta)
service … Add an Ionic service package and install any required plugins
add … Add an Ion, bower component, or addon to the project
remove … Remove an Ion, bower component, or addon from the project
list … List Ions, bower components, or addons in the project
ions … List available ions to add to your project
templates … List available Ionic starter templates
info … List information about the users runtime environment
help … Provides help for a certain command
link … Sets your Ionic App ID for your project
hooks … Manage your Ionic Cordova hooks
state … Saves or restores state of your Ionic Application using the package.json file
docs … Opens up the documentation for Ionic

C:\WINDOWS\system32>