询问CLI INIT不起作用 [英] ASK CLI INIT not working

查看:105
本文介绍了询问CLI INIT不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是问cli 的新手,但是我直接在alexa在线控制台上使用lamda创建了技能。



我从Node.js命令提示符中使用 npm install 安装了问cli 。然后,我尝试使用 ask init 对其进行初始化。



ask cli 要求我选择默认配置文件,然后打开Amazon登录页面。然后,我登录,但随后在我的IE上打开 127.0 .... 页面,显示无法访问此页面错误。同样在cmd提示符下,它显示为正在监听 localhost:9090 ,但是卡在那儿,什么也没发生。



所以我关闭了Node.js命令propmt并打开了一个新命令。在这里,我尝试了 ask clone 命令,但它给我错误属性令牌不存在。。



请帮助我,因为我真的很需要今天自己完成此操作

解决方案

询问init 随附 -无浏览器 选项,您可以将其用作另一种方法。




  • 运行进行init --no-browser

  • 从终端复制生成的链接,然后在浏览器中将其打开。 / li>
  • 它将要求您登录到Amazon Developer Console(请不要将其与AWS Console混合使用,这很重要)。

  • 登录后,复制生成的身份验证代码并将其粘贴回终端。



配置问init






另外,您可能需要配置AWS凭证。 此处的详细信息。 / p>

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

I installed ask cli using npm install from my Node.js command prompt. I then tried to initialize it using ask init.

ask cli 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 stucks there and nothing happens.

So I closed the Node.js command propmt and opened a fresh one. 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 init ships with the --no-browser option which you can use as yet another approach.

  • Run ask init --no-browser.
  • Copy the generated link from the terminal an open it in your browser.
  • It will ask you to login to your Amazon Developer console (don't mix it with AWS Console it's important).
  • Once you logged in, copy the generated Auth Code and paste it back to terminal.

That should be suffice to configure ask init.


In additional you may want to configure AWS credentials. More info about here.

这篇关于询问CLI INIT不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆