Issue when installing ionic


#1

would someone help me here please? I’m not able to install ionic:

See below the logs:

[ltakeda@oc8364166433 bin]$ sudo ./npm install -g cordova ionic
npm ERR! not a package /home/ltakeda/nodejs/node-v0.12.6-linux-x64/bin/ionic
npm ERR! addLocal Could not install /home/ltakeda/nodejs/node-v0.12.6-linux-x64/bin/ionic
npm ERR! Linux 2.6.32-504.23.4.el6.x86_64
npm ERR! argv “/home/ltakeda/nodejs/node-v0.12.6-linux-x64/bin/node” “/home/ltakeda/nodejs/node-v0.12.6-linux-x64/bin/npm” “install” “-g” “cordova” "ionic"
npm ERR! node v0.12.6
npm ERR! npm v2.11.2
npm ERR! path /tmp/npm-31452-b27d8679/unpack-92aea57b051d/package.json
npm ERR! code ENOENT
npm ERR! errno -2

npm ERR! enoent ENOENT, open '/tmp/npm-31452-b27d8679/unpack-92aea57b051d/package.json’
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Please include the following file with any support request:
npm ERR! /home/ltakeda/nodejs/node-v0.12.6-linux-x64/bin/npm-debug.log

[ltakeda@oc8364166433 bin]$ cat /home/ltakeda/nodejs/node-v0.12.6-linux-x64/bin/npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ ‘/home/ltakeda/nodejs/node-v0.12.6-linux-x64/bin/node’,
1 verbose cli ‘/home/ltakeda/nodejs/node-v0.12.6-linux-x64/bin/npm’,
1 verbose cli ‘install’,
1 verbose cli ‘-g’,
1 verbose cli ‘cordova’,
1 verbose cli ‘ionic’ ]
2 info using npm@2.11.2
3 info using node@v0.12.6
4 verbose install initial load of /home/ltakeda/nodejs/node-v0.12.6-linux-x64/lib/package.json
5 verbose readDependencies loading dependencies from /home/ltakeda/nodejs/node-v0.12.6-linux-x64/lib/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 { raw: ‘cordova’,
10 silly cache add scope: null,
10 silly cache add name: ‘cordova’,
10 silly cache add rawSpec: ‘’,
10 silly cache add spec: ‘’,
10 silly cache add type: ‘range’ }
11 silly addNamed cordova@

12 verbose addNamed "" is a valid semver range for cordova
13 silly addNameRange { name: ‘cordova’, range: '
’, hasData: false }
14 silly mapToRegistry name cordova
15 silly mapToRegistry using default registry
16 silly mapToRegistry registry https://registry.npmjs.org/
17 silly mapToRegistry uri https://registry.npmjs.org/cordova
18 verbose addNameRange registry:https://registry.npmjs.org/cordova not in flight; fetching
19 silly cache add parsed spec { raw: ‘ionic’,
19 silly cache add scope: null,
19 silly cache add name: null,
19 silly cache add rawSpec: ‘ionic’,
19 silly cache add spec: ‘/home/ltakeda/nodejs/node-v0.12.6-linux-x64/bin/ionic’,
19 silly cache add type: ‘local’ }
20 silly addLocalTarball shasum (computed) 9539584f46c22a6523d2209423a1dadeb81ba3dc
21 verbose addTmpTarball /home/ltakeda/nodejs/node-v0.12.6-linux-x64/bin/ionic not in flight; adding
22 verbose request uri https://registry.npmjs.org/cordova
23 verbose request no auth needed
24 info attempt registry request try #1 at 10:25:44 AM
25 verbose request id 9a7b38b2a6b4b65d
26 verbose etag "1KD0IN89ZPHUOPNDCNRDFVV1W"
27 http request GET https://registry.npmjs.org/cordova
28 verbose addTmpTarball validating metadata from /home/ltakeda/nodejs/node-v0.12.6-linux-x64/bin/ionic
29 verbose tar unpack /home/ltakeda/nodejs/node-v0.12.6-linux-x64/bin/ionic
30 verbose tar unpacking to /tmp/npm-31452-b27d8679/unpack-92aea57b051d
31 silly gentlyRm /tmp/npm-31452-b27d8679/unpack-92aea57b051d is being purged
32 verbose gentlyRm don’t care about contents; nuking /tmp/npm-31452-b27d8679/unpack-92aea57b051d
33 silly gunzTarPerm modes [ ‘755’, ‘644’ ]
34 error not a package /home/ltakeda/nodejs/node-v0.12.6-linux-x64/bin/ionic
35 error addLocal Could not install /home/ltakeda/nodejs/node-v0.12.6-linux-x64/bin/ionic
36 http 304 https://registry.npmjs.org/cordova
37 silly get cb [ 304,
37 silly get { date: ‘Mon, 06 Jul 2015 13:25:44 GMT’,
37 silly get via: ‘1.1 varnish’,
37 silly get ‘cache-control’: ‘max-age=60’,
37 silly get etag: ‘“1KD0IN89ZPHUOPNDCNRDFVV1W”’,
37 silly get age: ‘25’,
37 silly get connection: ‘keep-alive’,
37 silly get ‘x-served-by’: ‘cache-jfk1031-JFK’,
37 silly get ‘x-cache’: ‘HIT’,
37 silly get ‘x-cache-hits’: ‘1’,
37 silly get ‘x-timer’: ‘S1436189144.126604,VS0,VE2’,
37 silly get vary: ‘Accept’ } ]
38 verbose etag https://registry.npmjs.org/cordova from cache
39 verbose get saving cordova to /root/.npm/registry.npmjs.org/cordova/.cache.json
40 silly addNameRange number 2 { name: ‘cordova’, range: ‘*’, hasData: true }
41 silly addNameRange versions [ ‘cordova’,
41 silly addNameRange [ ‘0.0.1’,
41 silly addNameRange ‘0.0.2’,
41 silly addNameRange ‘0.0.3’,
41 silly addNameRange ‘0.0.4’,
41 silly addNameRange ‘0.0.5’,
41 silly addNameRange ‘0.0.6’,
41 silly addNameRange ‘0.0.7’,
41 silly addNameRange ‘0.0.8’,
41 silly addNameRange ‘0.0.9’,
41 silly addNameRange ‘0.1.0’,
41 silly addNameRange ‘0.1.1’,
41 silly addNameRange ‘0.1.2’,
41 silly addNameRange ‘0.1.3’,
41 silly addNameRange ‘0.1.4’,
41 silly addNameRange ‘0.1.5’,
41 silly addNameRange ‘0.1.6’,
41 silly addNameRange ‘0.1.7’,
41 silly addNameRange ‘0.1.8’,
41 silly addNameRange ‘0.1.9’,
41 silly addNameRange ‘0.1.10’,
41 silly addNameRange ‘0.1.11’,
41 silly addNameRange ‘0.1.12’,
41 silly addNameRange ‘0.1.13’,
41 silly addNameRange ‘0.1.14’,
41 silly addNameRange ‘2.2.0’,
41 silly addNameRange ‘2.3.0’,
41 silly addNameRange ‘2.3.1’,
41 silly addNameRange ‘2.3.2’,
41 silly addNameRange ‘2.3.3’,
41 silly addNameRange ‘2.3.5’,
41 silly addNameRange ‘2.3.6’,
41 silly addNameRange ‘2.4.0’,
41 silly addNameRange ‘2.4.1’,
41 silly addNameRange ‘2.4.2’,
41 silly addNameRange ‘2.4.3’,
41 silly addNameRange ‘2.4.4’,
41 silly addNameRange ‘2.4.5’,
41 silly addNameRange ‘2.4.6’,
41 silly addNameRange ‘2.4.7’,
41 silly addNameRange ‘2.4.8’,
41 silly addNameRange ‘2.4.9’,
41 silly addNameRange ‘2.4.10’,
41 silly addNameRange ‘2.5.0’,
41 silly addNameRange ‘2.5.2’,
41 silly addNameRange ‘2.5.3’,
41 silly addNameRange ‘2.5.4’,
41 silly addNameRange ‘2.5.5’,
41 silly addNameRange ‘2.6.0’,
41 silly addNameRange ‘2.6.1’,
41 silly addNameRange ‘2.6.2’,
41 silly addNameRange ‘2.7.0-rc.1’,
41 silly addNameRange ‘2.7.1-rc.1’,
41 silly addNameRange ‘2.7.2’,
41 silly addNameRange ‘2.7.3’,
41 silly addNameRange ‘2.7.4’,
41 silly addNameRange ‘2.8.0’,
41 silly addNameRange ‘2.8.1’,
41 silly addNameRange ‘2.8.2’,
41 silly addNameRange ‘2.8.3’,
41 silly addNameRange ‘2.8.4’,
41 silly addNameRange ‘2.8.5’,
41 silly addNameRange ‘2.8.6’,
41 silly addNameRange ‘2.8.7’,
41 silly addNameRange ‘2.8.8’,
41 silly addNameRange ‘2.8.9’,
41 silly addNameRange ‘2.8.10’,
41 silly addNameRange ‘2.8.11’,
41 silly addNameRange ‘2.8.12’,
41 silly addNameRange ‘2.8.13’,
41 silly addNameRange ‘2.8.14’,
41 silly addNameRange ‘2.8.15’,
41 silly addNameRange ‘2.8.16’,
41 silly addNameRange ‘2.8.17’,
41 silly addNameRange ‘2.8.18’,
41 silly addNameRange ‘2.8.19’,
41 silly addNameRange ‘2.8.20’,
41 silly addNameRange ‘2.8.21’,
41 silly addNameRange ‘2.8.22’,
41 silly addNameRange ‘2.8.23’,
41 silly addNameRange ‘2.8.24’,
41 silly addNameRange ‘2.8.25’,
41 silly addNameRange ‘2.9.0’,
41 silly addNameRange ‘2.9.1’,
41 silly addNameRange ‘2.9.2’,
41 silly addNameRange ‘2.9.3’,
41 silly addNameRange ‘2.9.4’,
41 silly addNameRange ‘2.9.5’,
41 silly addNameRange ‘2.9.6’,
41 silly addNameRange ‘2.9.7’,
41 silly addNameRange ‘3.0.0-rc1’,
41 silly addNameRange ‘3.0.0-rc1-1’,
41 silly addNameRange ‘3.0.0-rc1-3’,
41 silly addNameRange ‘3.0.0’,
41 silly addNameRange ‘3.0.1’,
41 silly addNameRange ‘3.0.2’,
41 silly addNameRange ‘3.0.3’,
41 silly addNameRange ‘3.0.4’,
41 silly addNameRange ‘3.0.5’,
41 silly addNameRange ‘3.0.6’,
41 silly addNameRange ‘3.0.7’,
41 silly addNameRange ‘3.0.8’,
41 silly addNameRange ‘3.0.9’,
41 silly addNameRange ‘3.0.10’,
41 silly addNameRange ‘3.1.0-0.1.0’,
41 silly addNameRange ‘3.1.0-0.2.0’,
41 silly addNameRange ‘3.2.0-rc.1’,
41 silly addNameRange ‘3.2.0-0.1.0’,
41 silly addNameRange ‘3.2.0-0.2.0’,
41 silly addNameRange ‘3.2.0-0.3.0’,
41 silly addNameRange ‘3.2.0-0.4.0’,
41 silly addNameRange ‘3.3.0-rc.1’,
41 silly addNameRange ‘3.3.0-0.1.1’,
41 silly addNameRange ‘3.3.1-0.1.2’,
41 silly addNameRange ‘2.9.0-rc1’,
41 silly addNameRange ‘3.3.1-0.3.0’,
41 silly addNameRange ‘3.3.1-0.3.1’,
41 silly addNameRange ‘3.3.1-0.4.1’,
41 silly addNameRange ‘3.3.1-0.4.2’,
41 silly addNameRange ‘3.4.0-0.1.0’,
41 silly addNameRange ‘3.4.0-0.1.1’,
41 silly addNameRange ‘3.4.0-0.1.2’,
41 silly addNameRange ‘3.4.0-0.1.3’,
41 silly addNameRange ‘0.0.0-fake’,
41 silly addNameRange ‘3.4.1-0.1.0’,
41 silly addNameRange ‘3.5.0-0.2.0’,
41 silly addNameRange ‘3.5.0-0.2.1’,
41 silly addNameRange ‘3.5.0-0.2.2’,
41 silly addNameRange ‘3.5.0-0.2.3’,
41 silly addNameRange ‘3.5.0-0.2.4’,
41 silly addNameRange ‘3.5.0-0.2.6’,
41 silly addNameRange ‘3.5.0-0.2.7’,
41 silly addNameRange ‘3.6.0-0.2.8’,
41 silly addNameRange ‘3.6.0-0.2.9’,
41 silly addNameRange ‘3.6.1-0.2.10’,
41 silly addNameRange ‘3.6.3-0.2.11’,
41 silly addNameRange ‘3.6.3-0.2.12’,
41 silly addNameRange ‘3.6.3-0.2.13’,
41 silly addNameRange ‘4.0.0’,
41 silly addNameRange ‘4.0.1’,
41 silly addNameRange ‘4.1.0’,
41 silly addNameRange ‘4.1.1’,
41 silly addNameRange ‘4.1.2’,
41 silly addNameRange ‘4.1.3-nightly.2014.10.21’,
41 silly addNameRange ‘4.2.0’,
41 silly addNameRange ‘4.3.0’,
41 silly addNameRange ‘5.0.0’,
41 silly addNameRange ‘4.3.1’,
41 silly addNameRange ‘5.1.1’ ] ]
42 silly addNamed cordova@5.1.1
43 verbose addNamed “5.1.1” is a plain semver version for cordova
44 silly cache afterAdd cordova@5.1.1
45 verbose afterAdd /root/.npm/cordova/5.1.1/package/package.json not in flight; writing
46 verbose afterAdd /root/.npm/cordova/5.1.1/package/package.json written
47 verbose stack Error: ENOENT, open '/tmp/npm-31452-b27d8679/unpack-92aea57b051d/package.json’
47 verbose stack at Error (native)
48 verbose cwd /home/ltakeda/nodejs/node-v0.12.6-linux-x64/bin
49 error Linux 2.6.32-504.23.4.el6.x86_64
50 error argv “/home/ltakeda/nodejs/node-v0.12.6-linux-x64/bin/node” “/home/ltakeda/nodejs/node-v0.12.6-linux-x64/bin/npm” “install” “-g” “cordova” "ionic"
51 error node v0.12.6
52 error npm v2.11.2
53 error path /tmp/npm-31452-b27d8679/unpack-92aea57b051d/package.json
54 error code ENOENT
55 error errno -2
56 error enoent ENOENT, open '/tmp/npm-31452-b27d8679/unpack-92aea57b051d/package.json’
56 error enoent This is most likely not a problem with npm itself
56 error enoent and is related to npm not being able to find a file.
57 verbose exit [ -2, true


#2

Could you provide information on your linux distribution?


#3

Hi wwelchj, thanks for the reply.

Is this enough?

[ltakeda@oc8364166433 bin]$ uname -a
Linux oc8364166433.ibm.com 2.6.32-504.23.4.el6.x86_64 #1 SMP Fri May 29 10:16:43 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux


#4

Not a problem! Could you tell me if you are running RedHat, SuSE, Ubuntu, Fedora, etc.?