question

newuser-64d30790-e098-4617-b3b4-41d03634fa7c avatar image

ASK CLI INIT Not Working

Hello,

I am new to ask cli but I have created skills directly on alexa online console and using lamda.

I installed ask cli using npn install from my node js cmd prompt. I then tried to initialize using ask init.

It asks me to select a default profile and then opens up amazon login page, I then sign in but after that it opens up 127.0.... page on my IE which gives cannot reach this page error. Also in the cmd prompt it shows as listening to localhost:9090 but it is stuck there and nothing happens.

So I closed the node js cmd propmt and opened a fresh new one, now here I tried the ask clone command but it gives me error "The property "token" does not exist.".

Please help me as I really need to get this done today itself.

ask cli
10 |5000

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

Jason Kilhoffer avatar image
Jason Kilhoffer answered

Try using

ask init --no-browser

This will let you get the URL and paste it into your browser or many different browsers (like if you are using IE try Chrome and Firefox). Then you should get a page with the token so you can copy and paste it in manually.

port 9090 could be blocked on your local pc by firewall or the port could be in use. Make sure to restart the pc!

If you don't get past the ask init nothing will work.

10 |5000

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

newuser-ce517dae-8a58-43aa-9976-7eff93d7cedd avatar image
newuser-ce517dae-8a58-43aa-9976-7eff93d7cedd answered

Was this ever resolved? I am having the same issue on my Windows 10 machine. Tried it on Linux and it worked just fine, but need to get it to work on Windows. Is there a potential version issue with a dependency? Node, maybe?

10 |5000

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

newuser-ce517dae-8a58-43aa-9976-7eff93d7cedd avatar image
newuser-ce517dae-8a58-43aa-9976-7eff93d7cedd answered

Please, this is driving me crazy. I tried the --no-browser option which generates a code in the browser, but the cmd prompt simply won't allow me to type it in or paste it or anything.

1 comment
10 |5000

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

Rokas avatar image Rokas commented ·

What version of node are you using? I spotted, that it is best to use 8v on node, because with the newest one, ask does not work reliably and some commands don't work.

Try installing and switching version of node using nvm.

0 Likes 0 ·