0

现在花了几个小时,所以有时间寻求帮助。尝试在 Windows 10 上安装 Alexa ASK CLI。

NPM v5.5.1 节点 v8.9.1 Git git 版本 2.28.0.windows.1

运行“询问配置”并很好地设置配置文件。

当我运行“ask new”时,它会进入“- Cloning Alexa Hosted Skill...”,抛出以下错误:

throw new CLiError(`${ex}`);
            

CliError: Error: Command failed: git fetch --all --quiet
C:\Users\Edd\AppData\Roaming\npm/node_modules/node/bin/node: line 1: This: command not found
bash: /dev/tty: No such device or address
error: failed to execute prompt script (exit code 1)
fatal: could not read Username for 'https://git-codecommit.us-east-1.amazonaws.com/v1/repos/4c375da4- 
810d-4c16-b07e-0f5851bf72aa': No such file or directory
error: Could not fetch origin

at GitClient._execCommands (C:\Users\Edd\AppData\Roaming\npm\node_modules\ask-cli\lib\clients\git-client.js:238:23)
at GitClient.fetchAll (C:\Users\Edd\AppData\Roaming\npm\node_modules\ask-cli\lib\clients\git-client.js:98:14)
at _gitCloneWorkflow (C:\Users\Edd\AppData\Roaming\npm\node_modules\ask-cli\lib\controllers\hosted-skill-controller\clone-flow.js:83:15)
at Object.cloneProjectFromGit (C:\Users\Edd\AppData\Roaming\npm\node_modules\ask-cli\lib\controllers\hosted-skill-controller\clone-flow.js:60:5)
at getHostedSkillMetadata (C:\Users\Edd\AppData\Roaming\npm\node_modules\ask-cli\lib\controllers\hosted-skill-controller\index.js:66:23)
at smapiClient.skill.alexaHosted.getAlexaHostedSkillMetadata (C:\Users\Edd\AppData\Roaming\npm\node_modules\ask-cli\lib\controllers\hosted-skill-controller\index.js:102:13)
at _normalizeSmapiResponse (C:\Users\Edd\AppData\Roaming\npm\node_modules\ask-cli\lib\clients\smapi-client\index.js:169:21)
at _normalizeSmapiResponse (C:\Users\Edd\AppData\Roaming\npm\node_modules\ask-cli\lib\clients\smapi-client\index.js:189:5)
at httpClient.request (C:\Users\Edd\AppData\Roaming\npm\node_modules\ask-cli\lib\clients\smapi-client\index.js:168:17)
at Request.requestLib [as _callback] (C:\Users\Edd\AppData\Roaming\npm\node_modules\ask-cli\lib\clients\http-client.js:62:16)'''

我尝试过重新安装 NPM、Node、Git、重置“询问配置”、更改 GIT 安装选项以及我能想到的所有其他内容。

有人有什么想法吗?

提前致谢。

4

1 回答 1

1

将节点升级到 12.18.0 并将 NPM 升级到 6.14.4 并且可以正常工作。

于 2020-07-28T15:11:40.423 回答