Search code examples
cordovacordova-cli

$ cordova create hello com.example.hello HelloWorld


I have installed NPM. I install it to C:\Users\Irfan\AppData\Roaming\npm Now, how to create my app

$ cordova create hello com.example.hello HelloWorld

When I run the command on command prompt there is error about $ as it isn't defined.


Solution

  • You shouldn't be including the $ on the command you run. It is there only to say that the rest of line is executed on command line. so try to run

    cordova create hello com.example.hello HelloWorld
    

    on command prompt.

    Also, first you need to actually install Cordova with

    npm install -g cordova