question

rflorsree avatar image
rflorsree asked

Error in ASK CLI

"Iam trying to deploy a template skill by using" :

ask new --template

"and getting the following error:"

Error: spawn git ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19)
    at onErrorNT (internal/child_process.js:407:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)


"Is there any way to resolve this as I am new to node.js and any kind of CLI".
skillask clinode_js
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Alohakrisi avatar image
Alohakrisi answered

Hi rflorsree

Feels like fighting a dragon who grows 17 new heads every time you chop one off, right? I feel for you.

You probably did not install Git yet. Here's a tutorial on how to do that:

https://git-scm.com/book/en/v2/Getting-Started-Installing-Git

Git basically let's you keep track of the changes to your code. That's called version control. When you back it up to a repository (like a container for your code), like Github, it will tell you how your code has evolved and ensure that you don't lose everything when you go wrong.

The command line interface (CLI) let's you do all kinds of things that are integral to software development, such as installing so called modules or creating skills. These modules (node modules) are installed based on what was described in a file that tells you what the contents is (package.json). So for example instead of writing up all the code required to run Alexa these modules contain the basics.

Good luck. It can be pretty tough when all of these words and concepts are new. You are not alone with that.

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.