Closed5
amplify init のプロセス途中で進めなくなる
(node:607) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'value' of undefined
at ListPrompt.getCurrentValue (/usr/local/share/.config/yarn/global/node_modules/inquirer/lib/prompts/list.js:148:53)
at MapSubscriber._next (/usr/local/share/.config/yarn/global/node_modules/rxjs/internal/operators/map.js:49:35)
at MapSubscriber.Subscriber.next (/usr/local/share/.config/yarn/global/node_modules/rxjs/internal/Subscriber.js:66:18)
at TakeSubscriber._next (/usr/local/share/.config/yarn/global/node_modules/rxjs/internal/operators/take.js:54:30)
at TakeSubscriber.Subscriber.next (/usr/local/share/.config/yarn/global/node_modules/rxjs/internal/Subscriber.js:66:18)
at Interface.handler (/usr/local/share/.config/yarn/global/node_modules/rxjs/internal/observable/fromEvent.js:22:28)
at Interface.emit (events.js:327:22)
at Interface.EventEmitter.emit (domain.js:486:12)
at Interface._onLine (readline.js:337:10)
at Interface._line (readline.js:666:8)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:607) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:607) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
同じ症状っぽい
yarn でやってるのが問題っぽい?ので npm を使ってみる
FROM node:14-buster
LABEL maintainer="tktcorporation <tktcorporation@gmail.com>"
RUN apt-get update && apt-get -y upgrade
RUN apt-get install -y build-essential git fish
RUN curl "https://d1vvhvl2y92vvt.cloudfront.net/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
RUN unzip awscliv2.zip
RUN ./aws/install
RUN rm awscliv2.zip
RUN npm i -g @aws-amplify/cli
環境はここでやってる
root@8e43ea8d3e81 /w/android# amplify init
Initializing new Amplify CLI version...
Done initializing new version.
Scanning for plugins...
Plugin scan successful
Note: It is recommended to run this command from the root of your app directory
? Enter a name for the project AppSyncSample
? Enter a name for the environment dev
? Choose your default editor: Visual Studio Code
? Choose the type of app that you're building android
Please tell us about your project
? Where is your Res directory: app/src/main/res
通った
このスクラップは2020/12/11にクローズされました