我正在尝试使用AWS Amplify构建一个简单的React应用程序。在运行放大init
时,我找不到任何东西可以解释应在以下字段中放入哪些值:
? Source Directory Path: src
? Distribution Directory Path: build
? Build Command: npm.cmd run-script build
? Start Command: npm.cmd run-script start
对于路径字段(源和构建),我尝试仅放入用于创建应用的目录,但是在Amplify Init中,此错误失败了:
错误:x: amplify myAmplifyproject x: amplify myAmplifyProject包含无效的win32路径字符。
那么,有人知道上面显示的4个字段要添加的正确值/相关值是什么?
当我创建项目时,我正在使用诸如:
的值Source Directory Path: /
? Distribution Directory Path: build
? Build Command: npm run-script build
? Start Command: npm run-script start
您是否安装了Amplify-CLI?
我不使用npm.cmd
,只有npm build
或任何命令。