Error: spawn git ENOENT as Nativescript Error

i've updated recently Nativescript to 7.1.2

now when i run my app "tnx run android", this will give me an error below:

The current application is not compatible with NativeScript CLI 7.0.

Run 'ns migrate' to migrate your project to NativeScript 7.

Alternatively you may try running it with '--force' to skip this check.

Then i try to run "ns migrate", but now gives me this error below and i'm stuck:

Error: spawn git ENOENT
    at onErrorNT (internal/child_process.js:469:16)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)

Can someone point me to the right direction on fixing this. i've read countless all over the net but found no solution.

Thanks all!

Read more here:

Content Attribution

This content was originally published by Kim Lo at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: