Cordova is not recognized

Pagina: 1
Acties:

Onderwerpen


Acties:
  • 0 Henk 'm!

Verwijderd

Topicstarter
Sta mij eerst toe vrede te wensen aan alle tweakers die van goede wille zijn :)

Ik zit met een vrij frustrerend probleem in de installatie van cordova: na "npm install -g cordova " in het cmd (windows 8.1, 64 bits), lijkt alles vlekkenloss geinstalleerd te zijn. Als ik hierna echter "cordova" invoer in een cmd scherm, zegt deze dat cordova "not recognized as a ...command" is. Ik heb naar mijn weten alles geprobeerd, maar tevergeefs. Hopelijk kan iemand mij helpen !
Alvast bedankt! :)

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
C:\Users\James>npm install -g cordova
npm http GET https://registry.npmjs.org/cordova
npm http 304 https://registry.npmjs.org/cordova
npm http GET https://registry.npmjs.org/elementtree/0.1.5
npm http GET https://registry.npmjs.org/plist
.....
npm http 304 https://registry.npmjs.org/sigmund
C:\Users\James\AppData\Roaming\npm\cordova -> C:\Users\James\AppData\Roaming\npm
\node_modules\cordova\bin\cordova
cordova@3.3.1-0.1.2 C:\Users\James\AppData\Roaming\npm\node_modules\cordova
├── ncallbacks@1.0.0
├── open@0.0.3
├── semver@1.1.0
├── colors@0.6.2
├── mime@1.2.11
├── q@0.9.7
├── follow-redirects@0.0.3 (underscore@1.5.2)
├── optimist@0.6.0 (wordwrap@0.0.2, minimist@0.0.5)
├── shelljs@0.1.2
├── glob@3.2.7 (inherits@2.0.1, minimatch@0.2.14)
├── lodash@2.4.1
├── elementtree@0.1.5 (sax@0.3.5)
├── tar@0.1.19 (inherits@2.0.1, block-stream@0.0.7, fstream@0.1.25)
├── xcode@0.6.2 (node-uuid@1.3.3, pegjs@0.6.2)
├── prompt@0.2.7 (revalidator@0.1.6, pkginfo@0.3.0, read@1.0.5, utile@0.1.7, win
ston@0.6.2)
├── request@2.22.0 (json-stringify-safe@4.0.0, aws-sign@0.3.0, forever-agent@0.5
.0, qs@0.6.6, tunnel-agent@0.3.0, oauth-sign@0.3.0, cookie-jar@0.3.0, node-uuid@
1.4.1, http-signature@0.10.0, hawk@0.13.1, form-data@0.0.8)
├── express@3.0.0 (methods@0.0.1, fresh@0.1.0, range-parser@0.0.4, debug@0.7.4,
cookie@0.0.4, crc@0.2.0, commander@0.6.1, mkdirp@0.3.3, send@0.1.0, connect@2.6.
0)
├── plist@0.4.3 (xmlbuilder@0.4.3, xmldom@0.1.17)
├── ripple-emulator@0.9.18 (connect-xcors@0.5.2, colors@0.6.0-1, accounting@0.3.
2, request@2.12.0, moment@1.7.2, express@3.1.0)
├── npm@1.3.22
├── plugman@0.17.0 (ncallbacks@1.1.0, osenv@0.0.3, bplist-parser@0.0.4, undersco
re@1.4.4, semver@2.0.11, nopt@1.0.10, dep-graph@1.1.0, rc@0.3.0, tar.gz@0.1.1, x
code@0.6.3, npm@1.3.4)
└── jshint@1.1.0 (peakle@0.0.1, cli@0.4.5, underscore@1.4.4, esprima@1.1.0-dev,
minimatch@0.2.14)

C:\Users\James>cordova
'cordova' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\James>cordova
'cordova' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\James>

[ Voor 80% gewijzigd door Creepy op 27-12-2013 15:41 ]


Acties:
  • 0 Henk 'm!

  • Creepy
  • Registratie: Juni 2001
  • Laatst online: 21:27

Creepy

Tactical Espionage Splatterer

Dus het commando cordova staat niet je path. In de API DOCS kom ik twee zaken tegen
1) Phonegap gebruiken m.b.v. een IDE
2) Een commando uitvoeren via het volledige pad naar de cordova bin directory.

Dus probeer optie 2 eens of pas je path aan.

[ Voor 17% gewijzigd door Creepy op 27-12-2013 15:44 ]

"I had a problem, I solved it with regular expressions. Now I have two problems". That's shows a lack of appreciation for regular expressions: "I know have _star_ problems" --Kevlin Henney


Acties:
  • 0 Henk 'm!

Verwijderd

Topicstarter
Ik wil dus het cordova cli installeren, om zo een nieuw project te kunnen maken, een platform toe te kunnen voegen, het testen met de emulater etc.
zie http://cordova.apache.org...0Command-line%20Interface

Acties:
  • 0 Henk 'm!

  • drm
  • Registratie: Februari 2001
  • Laatst online: 09-06 13:31

drm

f0pc0dert

Lijkt me meer een software dan een programmeer-probleem, maar dat terzijde :)

Aan je output te zien heeft npm cordova geinstalleerd op
C:\Users\James\AppData\Roaming\npm\cordova

Kun je die wel uitvoeren? Zo ja, zie post van Creepy. Zo nee, zoek de juiste executable op, en ga door naar post van Creepy ;)

Music is the pleasure the human mind experiences from counting without being aware that it is counting
~ Gottfried Leibniz


Acties:
  • 0 Henk 'm!

Verwijderd

Topicstarter
In C:\Users\James\AppData\Roaming\npm werkt het commando cordova inderdaad.
Dit is waarschijnlijk een vrij banale beginnersvraag, maar wat bedoelen jullie precies met path aanpassen?
De systeemvariabele PATH is al "c:\android\sdk\tools" Dient dit dan gewijzigd te worden?

Sorry 8)7 , gewoon C:\Users\James\AppData\Roaming\npm toevoegen aan het path en alles lukt perfect :p
Bedankt voor de hulp!

[ Voor 18% gewijzigd door Verwijderd op 28-12-2013 20:21 ]


Acties:
  • 0 Henk 'm!

  • Japius
  • Registratie: April 2003
  • Laatst online: 30-08 20:57
Jup. Je PATH wordt gescand op executables. Jouw PATH is niet volledig, want je cordova applicatie staat ergens anders.

Google is je vriend
Pagina: 1