Problem with instalation

Hi guys i have a problem with ionic instalation.

I instal ionic but it works only on path from user like this:

C:\Users\myUser\

When i eneter “ionic” i receive right information about ionic, but when i change directory for ex.
D:\myApp\ & enter the “ionic” fraze the cmd does not recognize command, can You help me with this?

P.S. npm & cordova working right in all folders on my computer

Make sure you install ionic globally using the -g command

Yes i do, i make a lot of things to slove this problem with reinstal a win 10. But everything false & my ionic and cordova dont work in other disk then c where windows is.

Oh Windows, haha, sorry its been a while.

My guess is you installed Ionic and all your dependencies to one partition of the Harddrive, and you are trying to access them on another partition.

Make sure you install your dependencies (node/npm, ionic, grunt, etc) on the harddrive you’ll be coding from.

Its kind of like opening an image. You have the image on one harddrive, so if you try to open it on a different harddrive, it won’t exist. You know its a different harddrive becaues of the prefix C:/ and D:/

0 info it worked if it ends with ok
1 verbose cli [ ‘D:\programowanie\node.exe’,
1 verbose cli ‘D:\programowanie\node_modules\npm\bin\npm-cli.js’,
1 verbose cli ‘install’,
1 verbose cli ‘-g’,
1 verbose cli ‘cordova’,
1 verbose cli ‘ionic’ ]
2 info using npm@2.14.7
3 info using node@v4.2.1
4 verbose install initial load of C:\Users\453\package.json
5 verbose readDependencies loading dependencies from C:\Users\453\package.json
6 silly cache add args [ ‘cordova’, null ]
7 verbose cache add spec cordova
8 silly cache add args [ ‘ionic’, null ]
9 verbose cache add spec ionic
10 silly cache add parsed spec Result {
10 silly cache add raw: ‘cordova’,
10 silly cache add scope: null,
10 silly cache add name: null,
10 silly cache add rawSpec: ‘cordova’,
10 silly cache add spec: ‘C:\Users\453\cordova’,
10 silly cache add type: ‘local’ }
11 silly cache add parsed spec Result {
11 silly cache add raw: ‘ionic’,
11 silly cache add scope: null,
11 silly cache add name: null,
11 silly cache add rawSpec: ‘ionic’,
11 silly cache add spec: ‘C:\Users\453\ionic’,
11 silly cache add type: ‘local’ }
12 silly addLocalTarball shasum (computed) dce67db7a64e85b1c5dd994ac15136a2f92a4204
13 verbose addTmpTarball C:\Users\453\cordova not in flight; adding
14 silly addLocalTarball shasum (computed) 52b148bdb03b513c0ed3741f3aa5cbbac7d52caa
15 verbose addTmpTarball C:\Users\453\ionic not in flight; adding
16 verbose addTmpTarball validating metadata from C:\Users\453\cordova
17 verbose tar unpack C:\Users\453\cordova
18 verbose tar unpacking to C:\Users\453\AppData\Local\Temp\npm-4632-49219817\unpack-a954f1263304
19 silly gentlyRm C:\Users\453\AppData\Local\Temp\npm-4632-49219817\unpack-a954f1263304 is being purged
20 verbose gentlyRm don’t care about contents; nuking C:\Users\453\AppData\Local\Temp\npm-4632-49219817\unpack-a954f1263304
21 verbose addTmpTarball validating metadata from C:\Users\453\ionic
22 verbose tar unpack C:\Users\453\ionic
23 verbose tar unpacking to C:\Users\453\AppData\Local\Temp\npm-4632-49219817\unpack-03008a6d883b
24 silly gentlyRm C:\Users\453\AppData\Local\Temp\npm-4632-49219817\unpack-03008a6d883b is being purged
25 verbose gentlyRm don’t care about contents; nuking C:\Users\453\AppData\Local\Temp\npm-4632-49219817\unpack-03008a6d883b
26 silly gunzTarPerm modes [ ‘777’, ‘666’ ]
27 silly gunzTarPerm modes [ ‘777’, ‘666’ ]
28 error not a package C:\Users\453\ionic
29 error addLocal Could not install C:\Users\453\ionic
30 error not a package C:\Users\453\cordova
31 error addLocal Could not install C:\Users\453\cordova
32 verbose stack Error: ENOENT: no such file or directory, open 'C:\Users\453\AppData\Local\Temp\npm-4632-49219817\unpack-03008a6d883b\package.json’
32 verbose stack at Error (native)
33 verbose cwd C:\Users\453
34 error Windows_NT 10.0.10240
35 error argv “D:\programowanie\node.exe” “D:\programowanie\node_modules\npm\bin\npm-cli.js” “install” “-g” “cordova” "ionic"
36 error node v4.2.1
37 error npm v2.14.7
38 error path C:\Users\453\AppData\Local\Temp\npm-4632-49219817\unpack-03008a6d883b\package.json
39 error code ENOENT
40 error errno -4058
41 error syscall open
42 error enoent ENOENT: no such file or directory, open 'C:\Users\453\AppData\Local\Temp\npm-4632-49219817\unpack-03008a6d883b\package.json’
42 error enoent This is most likely not a problem with npm itself
42 error enoent and is related to npm not being able to find a file.
43 verbose exit [ -4058, true ]

Yea, it looks like its trying to access files on two different harddrives which is causing the errors. I’m not exactly sure what you posted, but thats what it looks like.

I would keep all development to a single harddrive to avoid this. If I were you, I might try removing all dependencies and npm, and starting fresh.

I’ll try it but problem is to when i change directory within the same disk when i change directory form c:\users\piotr to c:\users\ ionic and cordova didn’t work :frowning:

On your last post, when you just change directories, what is the error code? Did you install ionic and cordova with the -g flag?

I was always installed with -g flag. I have good news i slove this problem. I was adding the path for ionic, cordova and npm modules to PATH & it’s working.