Amplify configure

社会主义新天地 提交于 2020-04-30 06:57:06

问题


I have installed 'amplify-cli'. When I type 'amplify configure', I get the error message:

'amplify is not recognized as an internal or external command, operable program or batch file'.


回答1:


Please share your platform. Are you developing on Linux, Windows (Powershell), or Linux on Windows (WSL/Ubuntu)?

Did you install the CLI globally?

Try this:

npm install -g @aws-amplify/cli

And see if that works. If the global install fails, you can try running this per an Amplify developer:

npm install -g @aws-amplify/cli --unsafe-perm=true

Edit: since you're on Windows, it's possible the CLI wasn't added to your $PATH variable. You can fix it by seeing this Github issue.



来源:https://stackoverflow.com/questions/58513948/amplify-configure

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!