Press Enter to continue
Specify the AWS Region
? region: ap-northeast-1
Specify the username of the new IAM user:
? user name: amplify-demo-20210926 # ※ここはとりあえず適当でいい
Complete the user creation using the AWS console
Press Enter to continue
# ※ここでブラウザに飛ばされるので、AWSにログインし、上記で入力したユーザー名(ここだと「amplify-demo-20210926」)で画面の指示通りに IAM ユーザーを作成する
Enter the access key of the newly created user:
? accessKeyId: ********************
? secretAccessKey: ****************************************
This would update/create the AWS Profile in your local machine
? Profile Name: default
Successfully set up the new user.
root@xxxxxx:/AmplifyDemo# vue create demo
? Your connection to the default yarn registry seems to be slow.
Use https://registry.npm.taobao.org for faster installation? Yes
Vue CLI v4.5.13
? Please pick a preset: Default (Vue 3) ([Vue 3] babel, eslint) # ※vue 3を選択します
? Pick the package manager to use when installing dependencies: NPM # ※npm を選択します
Vue CLI v4.5.13
✨ Creating project in /AmplifyDemo/demo.
🗃 Initializing git repository...
⚙️ Installing CLI plugins. This might take a while...
[ .................] / fetchMetadata: sill pacote range manifest for is-color-stop@^1.0.0 fetc[ .................] | fetchMetadata: sill pacote range manifest for svgo@^1.0.0 fetched in 19> yorkie@2.0.0 install /AmplifyDemo/demo2/node_modules/yorkie
> node bin/install.js
setting up Git hooks
done
> core-js@3.18.0 postinstall /AmplifyDemo/demo2/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
> ejs@2.7.4 postinstall /AmplifyDemo/demo2/node_modules/ejs
> node ./postinstall.js
added 1260 packages from 655 contributors in 138.79s
🚀 Invoking generators...
📦 Installing additional dependencies...
added 71 packages from 77 contributors in 70.734s
⚓ Running completion hooks...
📄 Generating README.md...
🎉 Successfully created project demo.
👉 Get started with the following commands:
$ cd demo
$ npm run serve
WARN Skipped git commit due to missing username and email in git config, or failed to sign commit.
You will need to perform the initial commit yourself.
次にモジュールをインストールします。
root@xxxxxx:/AmplifyDemo# cd demo
root@xxxxxx:/AmplifyDemo/demo# npm install
これで、デモプロジェクトの初期化生成が完了したので、npm run serve --open で起動して確認します。
root@xxxxxx:/AmplifyDemo/demo# npm run serve --open
> demo@0.1.0 serve /AmplifyDemo/demo
> vue-cli-service serve
INFO Starting development server...
98% after emitting CopyPlugin
DONE Compiled successfully in 36908ms 12:10:58 PM
App running at:
- Local: http://localhost:8081/
It seems you are running Vue CLI inside a container.
Access the dev server via http://localhost:<your containers external mapped port>/
Note that the development build is not optimized.
To create a production build, run npm run build.
コメント