Node.js 找不到模块';询问sdk';无法导入模块';指数';使用Alexa CLI打包时

Node.js 找不到模块';询问sdk';无法导入模块';指数';使用Alexa CLI打包时,node.js,aws-lambda,alexa,alexa-skills-kit,alexa-voice-service,Node.js,Aws Lambda,Alexa,Alexa Skills Kit,Alexa Voice Service,为什么我的技能不起作用?它是使用Alexa CLI创建的,但我在cloudwatch中发现了多个错误: "errorMessage": "Cannot find module 'ask-sdk'", "errorType": "Error", "stackTrace": [ "Object.<anonymous> (/var/task/index.js:6:15)", "Module._compile (module.js:652:30)", "Ob

为什么我的技能不起作用?它是使用Alexa CLI创建的,但我在cloudwatch中发现了多个错误:

 "errorMessage": "Cannot find module 'ask-sdk'",
  "errorType": "Error",
  "stackTrace": [
    "Object.<anonymous> (/var/task/index.js:6:15)",
    "Module._compile (module.js:652:30)",
    "Object.Module._extensions..js (module.js:663:10)",
    "Module.load (module.js:565:32)",
    "tryModuleLoad (module.js:505:12)",
    "Function.Module._load (module.js:497:3)"
  ]
}

START RequestId: 8d7ecc70-7308-11e8-a831-fd4af108282c Version: $LATEST
Unable to import module 'index': Error
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/var/task/index.js:6:15)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
END RequestId: 8d7ecc70-7308-11e8-a831-fd4af108282c
REPORT RequestId: 8d7ecc70-7308-11e8-a831-fd4af108282c  Duration: 1.47 ms   Billed Duration: 100 ms     Memory Size: 128 MB Max Memory Used: 47 MB  
以下是文件目录:

.问 --配置

互联网服务提供商 --权利 --订阅

兰姆达 --习俗

模型 --En-us.JSON


请帮忙!非常感谢你

尝试从Alexa Skill Builder中添加
ask sdk
。您能详细说明一下吗?我在projects dorectory中看到一个Alexa sdk文件夹。对不起,我指的是aws控制台。在aws控制台中添加ask sdk。好的,但是关于无法导入索引的问题?请检查并确认。
C:\Windows\System32\Premium_GlobalWarmingFacts>ask deploy
-------------------- Update Skill Project --------------------
Skill Id: amzn1.ask.skill.xxxxxxxxxxxxx
Skill deployment finished.
Model deployment finished.
Lambda deployment finished.
Lambda function(s) updated:
  [URI] arn:aws:lambda:us-east-1:xxxxxxxxxx:ask-custom-Premium_GlobalWarmingFacts-default
In-skill product deployment finished.
In-skill product(s) updated:
  [ID] amzn1.adg.product.3e8c2107-29b7-4976-86aa-5b140bfeb9fb [FILE] isps\entitlement\globalwarming_pack.json
  [ID] amzn1.adg.product.fe25638b-5806-4782-95bc-281020966118 [FILE] isps\entitlement\history_pack.json
  [ID] amzn1.adg.product.186a8b85-0c7e-4d53-99e7-fc19c661c0e2 [FILE] isps\entitlement\animals_pack.json
  [ID] amzn1.adg.product.3334840f-209b-49f0-b713-06de28f35797 [FILE] isps\subscription\all_access.json
Your skill is now deployed and enabled in the development stage.
Try invoking the skill by saying “Alexa, open {your_skill_invocation_name}” or simulate an invocation via the `ask simulate` command.