Help us understand the problem. What is going on with this article?

AWS Cloud9 で Vue.js を使う

1. Environmentを作成

いつも通り、AWS Cloud9上でCreate environmentをクリックして作成する

2. node.jsをインストール

AWS Cloud9では、既にインストールされている。
node --versionで確認。

3. Vue CLIをインストール

npm install -g @vue/cli
npm install -g @vue/cli-service-global

4. プロジェクトを作成

vue create <project_name>

5. 設定ファイルを追加

プロジェクト直下に、下記のファイルを作成する。

vue.config.js
module.exports = {
  devServer: {
    disableHostCheck: true
  }
}

これをしておかないと、npm run serveしてもinvalid hedder errorが出て表示されない

6. プロジェクトを実行

cd <project_name>
npm run serve

あとは、AWS Cloud9上で「Preview」をクリックすれば表示される。

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away