Image Image Image Image Image
Scroll to Top

To Top

cordova

04

Apr
2018

News Articles

Permalink

By admin404

Mobile App Design & Development

April 4, 2018 - News Articles

Happy 4/04! Despite our name being a terrible, archaic geek joke, many people don’t know that when ERA404 first started in April 2002, we strictly provided traditional print and identity design. But as the internet grew, more and more clients began to ask us for UI/UX design and web development.Read More

Tags | adobe air, android, apple store, bulc club, bulcclub, cordova, diss 'n' gauges, dissngauges, emma donoghue, facebook, google play store, hoboken girl, hobokengirl.com, iphone, java, joshua ferris, money as you grow, objective c, phonegap, react, react native, room, sketch something daily, swift, the unnamed

10

Apr
2014

Information Resources

Permalink

By admin404

Cordova CLI Doesn’t Like Spaces

April 10, 2014 - Information Resources

This is a quick trick for any Cordova coders operating on a Windows environment.

C:\app\>cordova -d platforms add android
cordova library for "android" already exists. No need to download. Continuing.
Checking if platform "android" passes minimum requirements...
Creating android project...
Running command:
    cmd args=["/c",
        "C:\\Users\\My Account With Spaces\\.cordova\\lib\\android\\cordova\\3.4.0\\bin\\create",
        "--cli",
        "C:\\app\\platforms\\android",
        "com.mycompany.testapp",
        "Test App"]
'C:\Users\My' is not recognized as an internal or external command,operable program or batch file.

( Grrr )

Windows should probably know better than to create directories (especially often accessed ones, such as a user’s profile folder), if it doesn’t know how to later address them in command line.

If you’re scratching your head over this one, you can get around it by modifying the path.
Open superspawn.js, located  here:

C:\Users\[My Account With Spaces]\AppData\Roaming\npm\node_modules\cordova\src

Update the line that calls the command to use a symbolic link. It’s roughly line 57:

This:

cmd = resolvePath(cmd);

Becomes This:

cmd = cmd.replace('C:\\Users\\My Account With Spaces\\.cordova','C:\\cordovalink');cmd = resolvePath(cmd);

Then, create a symbolic link at the new location C:\cordovalink, using this command:

C:\>mklink /D C:\cordovalink "C:\Users\My Account With Spaces\.cordova"
symbolic link created for C:\cordovalink <<===>> C:\Users\My Account With Spaces\.cordova

Hopefully this will save you some time.

Tags | android, application, cli, coding, cordova, development, ios, plugin, production, programming, tips, tricks