2

I'm going through a tutorial of how to install everything I need to start a project of mine. Everything's going well until I'm in the cmd, I've created the 'PATH' and added everything, I have node.js, however the next step is to npm install cordova through the cmd. Though when I try this happens:

enter image description here

So I tried it on its own without having accessed node first and then this happened:

enter image description here

It's probably something really simple that I've done wrong. But the help would be very appreciated.

Stickers
  • 63,307
  • 17
  • 114
  • 156
Aaria
  • 239
  • 2
  • 7
  • 19

1 Answers1

2

Don't run npm install xxx in the REPL - the REPL is meant for testing out Node.js code, not running executables (well, npm).

Just run it like the second time you tried it. The fix to that can be found here.

Community
  • 1
  • 1
Brendan
  • 2,549
  • 1
  • 13
  • 31