Upgrading CLI 2.2.1 to latest but still result in CLI 2.2.1


#1

I have used the follow npm command to upgrade my CLI from 2.2.1 to the latest.

  1. npm remove -g ionic
  2. npm install -g ionic@latest

After using the above command the installation states that I have installed ionic 2.2.3

`-- ionic@2.2.3
  +-- @ionic/app-generators@0.0.3
  +-- chalk@1.1.3
  | +-- ansi-styles@2.2.1
  | +-- escape-string-regexp@1.0.5
  | +-- has-ansi@2.0.0
  | +-- strip-ansi@3.0.1
  | `-- supports-color@2.0.0

However when I check the ionic version using ionic --version it still says it’s CLI 2.2.1

C:\Users\Administrator\Desktop>ionic -v
2.2.1

#2

The latest CLI release is 2.2.x. CLI v3 is in beta (I believe releasing soon according to their meeting minutes).
If you want to install v3, use

npm install -g ionic@beta

For Ionic1 Projects
npm install --save-dev @ionic/cli-plugin-ionic1@beta @ionic/cli-plugin-cordova@beta

For Ionic2/3 Project
npm install --save-dev @ionic/cli-plugin-ionic-angular@beta @ionic/cli-plugin-cordova@beta


#3

Thanks for your reply, but isn’t 2.2.3 a stable release?

I checked the latest release CLI using following command give me 2.2.3

C:\Users\Administrator\Desktop>npm view ionic@latest version
2.2.3

#4

Github master is in v2.2.3 now, but the changes are not documented. I am using CLI v3 now so I am not sure about that.


#5

Don’t worry, you are doing everything correctly: 2.2.3 is the latest stable version and CLI v3 is still in beta and unstable.

Now back to your problem:
WTF!? That’s a new one.

  • The ionic -v output is in the same command line and folder where you just installed the latest via npm?
  • Do you maybe have a local installation of ionic in “Desktop”? Can you try “ionic -v” somewhere else?
  • You seem to be working as Administrator… is the Command line you are installing also? Do you have a normal user that you could work in?
  • Search your whole computer for files named “ionic” or “node_modules” folders that contain an “ionic” folder… somewhere there is a duplicate.

#6

This is the only change from 2.2.2 to 2.2.3: https://github.com/driftyco/ionic-cli/commit/6a417e181ca5b531eeeff1f8f8007b91bea3887c Dropping the --v2 param, adding the --v1 param as a counterpart.


#7

I have deleted all duplicates and reinstalled ionic, still got this result.

C:\Users\Administrator\Desktop>npm install -g ionic@latest
C:\Users\Administrator\AppData\Roaming\npm\ionic -> C:\Users\Administrator\AppData\Roaming\npm\node_modules\ionic\bin\ionic
C:\Users\Administrator\AppData\Roaming\npm
`-- ionic@2.2.3

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\ionic\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

C:\Users\Administrator\Desktop>ionic -v
2.2.1

NOTE
The upgrade worked on my Mac but this windows machine is still not working.


#8

Post npm list -g --depth=0 and npm list --depth=0 please.


#9

*** npm list -g --deth=0 ***

C:\Users\Administrator\Desktop>npm list -g --depth=0
C:\Users\Administrator\AppData\Roaming\npm
+-- cnpm@4.4.2
+-- cordova@6.5.0
+-- ionic@2.2.3
+--  error: ENOENT: no such file or directory, open 'C:\Users\Administrator\AppData\Roaming\npm\node_modules\mklink\package.json
+--  error: ENOENT: no such file or directory, open 'C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm-debug.log\package.json
`-- rxjs@5.1.0

npm ERR! error in C:\Users\Administrator\AppData\Roaming\npm\node_modules\mklink: ENOENT: no such file or directory, open 'C:\Users\Administrator\AppData\Roaming\npm\node_modules\mklink\package.json'
npm ERR! error in C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm-debug.log: ENOENT: no such file or directory, open 'C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm-debug.log\package.json'
npm ERR! extraneous: abbrev@1.1.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\abbrev
npm ERR! extraneous: accepts@1.3.3 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\accepts
npm ERR! extraneous: acorn@4.0.11 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\acorn
npm ERR! extraneous: ajv@4.11.6 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\ajv
npm ERR! extraneous: aliasify@1.9.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\aliasify
npm ERR! extraneous: ansi@0.3.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\ansi
npm ERR! extraneous: ansi-escapes@1.4.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\ansi-escapes
npm ERR! extraneous: ansi-regex@2.1.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\ansi-regex
npm ERR! extraneous: ansi-styles@2.2.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\ansi-styles
npm ERR! extraneous: array-filter@0.0.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\array-filter
npm ERR! extraneous: array-flatten@1.1.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\array-flatten
npm ERR! extraneous: array-map@0.0.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\array-map
npm ERR! extraneous: array-reduce@0.0.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\array-reduce
npm ERR! extraneous: asn1@0.2.3 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\asn1
npm ERR! extraneous: asn1.js@4.9.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\asn1.js
npm ERR! extraneous: assert@1.4.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\assert
npm ERR! extraneous: assert-plus@1.0.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\assert-plus
npm ERR! extraneous: astw@2.2.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\astw
npm ERR! extraneous: async@1.5.2 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\async
npm ERR! extraneous: asynckit@0.4.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\asynckit
npm ERR! extraneous: aws-sign2@0.6.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\aws-sign2
npm ERR! extraneous: aws4@1.6.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\aws4
npm ERR! extraneous: balanced-match@0.4.2 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\balanced-match
npm ERR! extraneous: base64-js@1.2.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\base64-js
npm ERR! extraneous: bcrypt-pbkdf@1.0.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\bcrypt-pbkdf
npm ERR! extraneous: big-integer@1.6.19 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\big-integer
npm ERR! extraneous: bl@0.9.5 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\bl
npm ERR! extraneous: block-stream@0.0.9 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\block-stream
npm ERR! extraneous: bn.js@4.11.6 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\bn.js
npm ERR! extraneous: boom@2.10.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\boom
npm ERR! extraneous: bplist-creator@0.0.7 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\bplist-creator
npm ERR! extraneous: bplist-parser@0.1.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\bplist-parser
npm ERR! extraneous: brace-expansion@1.1.7 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\brace-expansion
npm ERR! extraneous: brorand@1.1.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\brorand
npm ERR! extraneous: browser-pack@6.0.2 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\browser-pack
npm ERR! extraneous: browser-resolve@1.11.2 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\browser-resolve
npm ERR! extraneous: browserify@13.3.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\browserify
npm ERR! extraneous: browserify-aes@1.0.6 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\browserify-aes
npm ERR! extraneous: browserify-cipher@1.0.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\browserify-cipher
npm ERR! extraneous: browserify-des@1.0.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\browserify-des
npm ERR! extraneous: browserify-rsa@4.0.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\browserify-rsa
npm ERR! extraneous: browserify-sign@4.0.4 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\browserify-sign
npm ERR! extraneous: browserify-transform-tools@1.5.3 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\browserify-transform-tools
npm ERR! extraneous: browserify-zlib@0.1.4 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\browserify-zlib
npm ERR! extraneous: buffer@4.9.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\buffer
npm ERR! extraneous: buffer-shims@1.0.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\buffer-shims
npm ERR! extraneous: buffer-xor@1.0.3 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\buffer-xor
npm ERR! extraneous: builtin-modules@1.1.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\builtin-modules
npm ERR! extraneous: builtin-status-codes@3.0.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\builtin-status-codes
npm ERR! extraneous: builtins@1.0.3 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\builtins
npm ERR! extraneous: bytes@2.3.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\bytes
npm ERR! extraneous: cached-path-relative@1.0.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\cached-path-relative
npm ERR! extraneous: caseless@0.12.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\caseless
npm ERR! extraneous: chalk@1.1.3 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\chalk
npm ERR! extraneous: cipher-base@1.0.3 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\cipher-base
npm ERR! extraneous: cli-cursor@1.0.2 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\cli-cursor
npm ERR! extraneous: cli-width@1.1.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\cli-width
npm ERR! extraneous: co@4.6.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\co
npm ERR! extraneous: code-point-at@1.1.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\code-point-at
npm ERR! extraneous: combine-source-map@0.7.2 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\combine-source-map
npm ERR! extraneous: combined-stream@1.0.5 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\combined-stream
npm ERR! extraneous: compressible@2.0.10 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\compressible
npm ERR! extraneous: compression@1.6.2 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\compression
npm ERR! extraneous: concat-map@0.0.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\concat-map
npm ERR! extraneous: concat-stream@1.5.2 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\concat-stream
npm ERR! extraneous: configstore@1.4.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\configstore
npm ERR! extraneous: console-browserify@1.1.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\console-browserify
npm ERR! extraneous: constants-browserify@1.0.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\constants-browserify
npm ERR! extraneous: content-disposition@0.5.2 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\content-disposition
npm ERR! extraneous: content-type@1.0.2 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\content-type
npm ERR! extraneous: convert-source-map@1.1.3 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\convert-source-map
npm ERR! extraneous: cookie@0.3.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\cookie
npm ERR! extraneous: cookie-signature@1.0.6 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\cookie-signature
npm ERR! extraneous: cordova-app-hello-world@3.11.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-app-hello-world
npm ERR! extraneous: cordova-create@1.0.2 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-create
npm ERR! extraneous: cordova-fetch@1.0.2 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-fetch
npm ERR! extraneous: cordova-js@4.2.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-js
npm ERR! extraneous: cordova-registry-mapper@1.1.15 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-registry-mapper
npm ERR! extraneous: cordova-serve@1.0.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-serve
npm ERR! extraneous: core-util-is@1.0.2 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\core-util-is
npm ERR! extraneous: create-ecdh@4.0.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\create-ecdh
npm ERR! extraneous: create-hash@1.1.2 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\create-hash
npm ERR! extraneous: create-hmac@1.1.4 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\create-hmac
npm ERR! extraneous: cryptiles@2.0.5 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\cryptiles
npm ERR! extraneous: crypto-browserify@3.11.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\crypto-browserify
npm ERR! extraneous: ctype@0.5.3 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\ctype
npm ERR! extraneous: dashdash@1.14.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\dashdash
npm ERR! extraneous: date-now@0.1.4 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\date-now
npm ERR! extraneous: debug@2.6.3 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\debug
npm ERR! extraneous: deep-extend@0.4.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\deep-extend
npm ERR! extraneous: defined@1.0.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\defined
npm ERR! extraneous: delayed-stream@1.0.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\delayed-stream
npm ERR! extraneous: dep-graph@1.1.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\dep-graph
npm ERR! extraneous: depd@1.1.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\depd
npm ERR! extraneous: dependency-ls@1.0.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\dependency-ls
npm ERR! extraneous: deps-sort@2.0.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\deps-sort
npm ERR! extraneous: des.js@1.0.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\des.js
npm ERR! extraneous: destroy@1.0.4 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\destroy
npm ERR! extraneous: detective@4.5.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\detective
npm ERR! extraneous: diffie-hellman@5.0.2 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\diffie-hellman
npm ERR! extraneous: domain-browser@1.1.7 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\domain-browser
npm ERR! extraneous: duplexer2@0.1.4 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\duplexer2
npm ERR! extraneous: duplexify@3.5.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\duplexify
npm ERR! extraneous: ecc-jsbn@0.1.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\ecc-jsbn
npm ERR! extraneous: ee-first@1.1.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\ee-first
npm ERR! extraneous: elementtree@0.1.7 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\elementtree
npm ERR! extraneous: elliptic@6.4.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\elliptic
npm ERR! extraneous: encodeurl@1.0.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\encodeurl
npm ERR! extraneous: end-of-stream@1.0.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\end-of-stream
npm ERR! extraneous: escape-html@1.0.3 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\escape-html
npm ERR! extraneous: escape-string-regexp@1.0.5 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\escape-string-regexp
npm ERR! extraneous: etag@1.8.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\etag
npm ERR! extraneous: events@1.1.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\events
npm ERR! extraneous: evp_bytestokey@1.0.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\evp_bytestokey
npm ERR! extraneous: exit-hook@1.1.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\exit-hook
npm ERR! extraneous: express@4.15.2 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\express
npm ERR! extraneous: extend@3.0.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\extend
npm ERR! extraneous: extsprintf@1.0.2 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\extsprintf
npm ERR! extraneous: falafel@1.2.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\falafel
npm ERR! extraneous: figures@1.7.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\figures
npm ERR! extraneous: finalhandler@1.0.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\finalhandler
npm ERR! extraneous: foreach@2.0.5 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\foreach
npm ERR! extraneous: forever-agent@0.6.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\forever-agent
npm ERR! extraneous: form-data@2.1.4 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\form-data
npm ERR! extraneous: forwarded@0.1.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\forwarded
npm ERR! extraneous: fresh@0.5.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\fresh
npm ERR! extraneous: fs.realpath@1.0.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\fs.realpath
npm ERR! extraneous: fstream@1.0.11 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\fstream
npm ERR! extraneous: function-bind@1.1.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\function-bind
npm ERR! extraneous: getpass@0.1.6 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\getpass
npm ERR! extraneous: glob@7.1.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\glob
npm ERR! extraneous: got@3.3.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\got
npm ERR! extraneous: graceful-fs@4.1.11 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\graceful-fs
npm ERR! extraneous: har-schema@1.0.5 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\har-schema
npm ERR! extraneous: har-validator@4.2.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\har-validator
npm ERR! extraneous: has@1.0.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\has
npm ERR! extraneous: has-ansi@2.0.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\has-ansi
npm ERR! extraneous: hash.js@1.0.3 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\hash.js
npm ERR! extraneous: hawk@3.1.3 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\hawk
npm ERR! extraneous: hmac-drbg@1.0.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\hmac-drbg
npm ERR! extraneous: hoek@2.16.3 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\hoek
npm ERR! extraneous: hosted-git-info@2.4.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\hosted-git-info
npm ERR! extraneous: htmlescape@1.1.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\htmlescape
npm ERR! extraneous: http-errors@1.6.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\http-errors
npm ERR! extraneous: http-signature@1.1.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\http-signature
npm ERR! extraneous: https-browserify@0.0.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\https-browserify
npm ERR! extraneous: ieee754@1.1.8 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\ieee754
npm ERR! extraneous: imurmurhash@0.1.4 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\imurmurhash
npm ERR! extraneous: indexof@0.0.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\indexof
npm ERR! extraneous: infinity-agent@2.0.3 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\infinity-agent
npm ERR! extraneous: inflight@1.0.6 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\inflight
npm ERR! extraneous: inherits@2.0.3 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\inherits
npm ERR! extraneous: ini@1.3.4 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\ini
npm ERR! extraneous: init-package-json@1.9.5 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\init-package-json
npm ERR! extraneous: inline-source-map@0.6.2 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\inline-source-map
npm ERR! extraneous: inquirer@0.10.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\inquirer
npm ERR! extraneous: insert-module-globals@7.0.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\insert-module-globals
npm ERR! extraneous: interpret@1.0.2 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\interpret
npm ERR! extraneous: ipaddr.js@1.3.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\ipaddr.js
npm ERR! extraneous: is-buffer@1.1.5 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\is-buffer
npm ERR! extraneous: is-builtin-module@1.0.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\is-builtin-module
npm ERR! extraneous: is-finite@1.0.2 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\is-finite
npm ERR! extraneous: is-fullwidth-code-point@1.0.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\is-fullwidth-code-point
npm ERR! extraneous: is-npm@1.0.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\is-npm
npm ERR! extraneous: is-redirect@1.0.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\is-redirect
npm ERR! extraneous: is-stream@1.1.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\is-stream
npm ERR! extraneous: is-typedarray@1.0.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\is-typedarray
npm ERR! extraneous: is-url@1.2.2 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\is-url
npm ERR! extraneous: isarray@1.0.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\isarray
npm ERR! extraneous: isstream@0.1.2 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\isstream
npm ERR! extraneous: jju@1.3.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\jju
npm ERR! extraneous: jodid25519@1.0.2 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\jodid25519
npm ERR! extraneous: jsbn@0.1.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\jsbn
npm ERR! extraneous: json-parse-helpfulerror@1.0.3 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\json-parse-helpfulerror
npm ERR! extraneous: json-schema@0.2.3 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\json-schema
npm ERR! extraneous: json-stable-stringify@1.0.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\json-stable-stringify
npm ERR! extraneous: json-stringify-safe@5.0.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\json-stringify-safe
npm ERR! extraneous: jsonify@0.0.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\jsonify
npm ERR! extraneous: jsonparse@1.3.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\jsonparse
npm ERR! extraneous: JSONStream@1.3.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\JSONStream
npm ERR! extraneous: jsprim@1.4.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\jsprim
npm ERR! extraneous: labeled-stream-splicer@2.0.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\labeled-stream-splicer
npm ERR! extraneous: latest-version@1.0.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\latest-version
npm ERR! extraneous: lexical-scope@1.2.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\lexical-scope
npm ERR! extraneous: lodash@3.10.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\lodash
npm ERR! extraneous: lodash._getnative@3.9.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\lodash._getnative
npm ERR! extraneous: lodash.debounce@3.1.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\lodash.debounce
npm ERR! extraneous: lodash.memoize@3.0.4 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\lodash.memoize
npm ERR! extraneous: lowercase-keys@1.0.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\lowercase-keys
npm ERR! extraneous: media-typer@0.3.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\media-typer
npm ERR! extraneous: merge-descriptors@1.0.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\merge-descriptors
npm ERR! extraneous: methods@1.1.2 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\methods
npm ERR! extraneous: miller-rabin@4.0.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\miller-rabin
npm ERR! extraneous: mime@1.3.4 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\mime
npm ERR! extraneous: mime-db@1.27.0 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\mime-db
npm ERR! extraneous: mime-types@2.1.15 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\mime-types
npm ERR! extraneous: minimalistic-assert@1.0.0 
...

npm list --depth=0

C:\Users\Administrator\Desktop>npm list --depth=0
C:\Users\Administrator\Desktop
`-- (empty)

#10

Ok, I don’t understand this.

Hammer method solution:
I would suggest you get rid of node and npm on that machine, install https://github.com/coreybutler/nvm-windows and then reinstall node + npm. This way you can install several node versions and have different global npm installations (for example one with CLI 2.2.3 and one with CLI 3.x beta). (Make sure to put the “nvm” folder somewhere nice and short [e.g. C:/nvm] so you don’t get path problems).


#11

Ok I will give it a try , thanks!


#12

Uninstalling node.js and removed all the npm related folders, and reinstalling node.js/ionic/cordova worked! Thanks for the help.