Nuxt.jsをインストール、新規アプリケーションをローカルWebサーバー/環境で公開する(Windows10)

Nuxt.jsをインストール、新規アプリケーションをローカルWebサーバー/環境で公開してみます。

■PC環境

・Windows10、Administrator(管理者)アカウント

・node version 14.15.0

・npm version 6.14.8

■プロジェクトを作るためのフォルダを用意する。

まずNuxt.jsの新しいプロジェクトを作るためのフォルダを用意する。

今回は、「C:\test(フォルダパス)」に設定してます。

■コマンドプロンプトを起動する

Windows10のデスクトップ画面に、「ここに入力して検索」と表示されている検索ボックスで「コマンドプロンプト」と検索します。検索すると、コマンドプロンプトが表示されますので、こちらをクリックします。クリックすると、コマンドプロンプトのウインドウが表示されます。

■Nuxt.jsのインストール

npx create-nuxt-app demo

表示後、上記のコマンドを入力し、Enterキーを押します。「npx create-nuxt-app <project-name>」となります。今回はプロジェクト名は「demo」と入力します。

create-nuxt-app v3.4.0
✨ Generating Nuxt.js project in demo
? Project name: (demo)

Enterキーを押すと、「Project name(プロジェクト名」の入力が表示されますので、今回のプロジェクト名である「demo」と入力し、Enterキーを押します。

Programming language: (Use arrow keys)
> JavaScript
TypeScript

Enterキーを押すと、「Programming language: (Use arrow keys)(プログラミング言語:(矢印キーを使用))」と表示されますので、今回は「Javascript」を矢印キーで選択し、Enterキーを押します。

? Package manager: (Use arrow keys)
Yarn
>Npm

Enterキーを押すと、「 Package manager: (Use arrow keys)(パッケージマネージャー:(矢印キーを使用))」と表示されますので、今回は「Npm」と矢印キーで選択し、Enterキーを押します。

? UI framework: (Use arrow keys)
> None
Ant Design Vue
Bootstrap Vue
Buefy
Bulma
Chakra UI
Element
Framevuerk
iView
Tachyons
Tailwind CSS
Vuesax
Vuetify.js

Enterキーを押すと、「UI framework: (Use arrow keys)(UIフレームワーク:(矢印キーを使用))」と表示されますので、今回は「None」を矢印キーで選択し、Enterキーを押します。

? Nuxt.js modules: (Press <space> to select, <a> to toggle all, <i> to invert selection)
>( ) Axios
( ) Progressive Web App (PWA)
( ) Content

Enterキーを押すと、「? Nuxt.js modules: (Press <space> to select, <a> to toggle all, <i> to invert selection)(Nuxt.jsモジュール:(<スペース>を押して選択、<a>を押してすべてを切り替え、<i>を押して選択を反転します))」と表示されますので、今回は「Axios」をスペースキーで選択し、Enterキーを押します。

Linting tools: (Press <space> to select, <a> to toggle all, <i> to invert selection)
>( ) ESLint
( ) Prettier
( ) Lint staged files
( ) StyleLint
( ) Commitlint

Enterキーを押すと、「Linting tools: (Press <space> to select, <a> to toggle all, <i> to invert selection)(静的解析ツール:(<スペース>を押して選択、<a>を押してすべてを切り替え、<i>を押して選択を反転します))」と表示されますので、今回は「ESLint」をスペースキーで選択し、Enterキーを押します。

? Testing framework: (Use arrow keys)
None
Jest
>AVA
WebdriverIO

Enterキーを押すと、「Testing framework: (Use arrow keys)(テストフレームワーク:(矢印キーを使用))」と表示されますので、今回は「AVA」を矢印キーで選択し、Enterキーを押します。

Rendering mode:
Universal (SSR / SSG)
> Single Page App

Enterキーを押すと、「Rendering mode:(レンダリングモード:)」と表示されますので、今回は「Single Page App」と選択し、Enterキーを押します。

? Deployment target: (Use arrow keys)
> Server (Node.js hosting)
Static (Static/JAMStack hosting)

Enterキーを押すと「Deployment target: (Use arrow keys)(展開するターゲット:(矢印キーを使用))」と表示されますので、今回は「Server (Node.js hosting)」を矢印キーで選択し、Enterキーを押します。

Development tools: (Press <space> to select, <a> to toggle all, <i> to invert selection)
>( ) jsconfig.json (Recommended for VS Code if you’re not using typescript)
( ) Semantic Pull Requests
( ) Dependabot (For auto-updating dependencies, GitHub only)

Enterキーを押すと「Development tools: (Press <space> to select, <a> to toggle all, <i> to invert selection)(開発ツール:(<スペース>を押して選択、<a>を押してすべてを切り替え、<i>を押して選択を反転します))」と表示されますので、今回は「jsconfig.json」をスペースキーで選択し、Enterキーを押します。

? Continuous integration: (Use arrow keys)
> None
GitHub Actions (GitHub only)

Enterキーを押すと「Continuous integration: (Use arrow keys)(継続的インテグレーション(矢印キーを使用))」と表示されますので、今回は「None」を矢印キーで選択し、Enterキーを押します。

? Version control system: (Use arrow keys)
Git
> None

Enterキーを押すと「Version control system: (Use arrow keys)(バージョン管理システム:(矢印キーを使用))」と表示されますので、今回は「None」を矢印キーで選択し、Enterキーを押します。

Installing packages with npm

Enterキーを押すと、npmを使用したパッケージのインストールが開始されます。

npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now
deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated @nuxt/static@1.0.0: this feature has been moved to the core. you can directly use nuxt generate
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number
of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencie
s.
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade t
o fsevents 2.

> core-js@2.6.11 postinstall C:\test\demop\node_modules\@nuxt\babel-preset-app\node_modules\core-js

> core-js@2.6.11 postinstall C:\test\demop\node_modules\@nuxt\babel-preset-app\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

> core-js@2.6.11 postinstall C:\test\demop\node_modules\@nuxt\babel-preset-app\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

> core-js@2.6.11 postinstall C:\test\demop\node_modules\@nuxt\babel-preset-app\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

> core-js@2.6.11 postinstall C:\test\demop\node_modules\babel-plugin-espower\node_modules\core-js

> core-js@2.6.11 postinstall C:\test\demop\node_modules\@nuxt\babel-preset-app\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

> core-js@2.6.11 postinstall C:\test\demop\node_modules\babel-plugin-espower\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> core-js@2.6.11 postinstall C:\test\demop\node_modules\@nuxt\babel-preset-app\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

> core-js@2.6.11 postinstall C:\test\demop\node_modules\babel-plugin-espower\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> core-js@2.6.11 postinstall C:\test\demop\node_modules\call-matcher\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> ejs@2.7.4 postinstall C:\test\demop\node_modules\ejs
> node ./postinstall.js

Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)

> core-js@2.6.11 postinstall C:\test\demop\node_modules\empower-core\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> core-js@2.6.11 postinstall C:\test\demop\node_modules\espurify\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> core-js@2.6.11 postinstall C:\test\demop\node_modules\@nuxt\babel-preset-app\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

> core-js@2.6.11 postinstall C:\test\demop\node_modules\babel-plugin-espower\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> core-js@2.6.11 postinstall C:\test\demop\node_modules\call-matcher\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> ejs@2.7.4 postinstall C:\test\demop\node_modules\ejs
> node ./postinstall.js

Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)

> core-js@2.6.11 postinstall C:\test\demop\node_modules\empower-core\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> core-js@2.6.11 postinstall C:\test\demop\node_modules\espurify\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

 

> core-js@2.6.11 postinstall C:\test\demop\node_modules\@nuxt\babel-preset-app\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

> core-js@2.6.11 postinstall C:\test\demop\node_modules\babel-plugin-espower\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> core-js@2.6.11 postinstall C:\test\demop\node_modules\call-matcher\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> ejs@2.7.4 postinstall C:\test\demop\node_modules\ejs
> node ./postinstall.js

Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)

> core-js@2.6.11 postinstall C:\test\demop\node_modules\empower-core\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> core-js@2.6.11 postinstall C:\test\demop\node_modules\espurify\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> core-js@3.6.5 postinstall C:\test\demop\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now
deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated @nuxt/static@1.0.0: this feature has been moved to the core. you can directly use nuxt generate
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number
of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencie
s.
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade t
o fsevents 2.
npm

> core-js@2.6.11 postinstall C:\test\demop\node_modules\@nuxt\babel-preset-app\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

> core-js@2.6.11 postinstall C:\test\demop\node_modules\babel-plugin-espower\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> core-js@2.6.11 postinstall C:\test\demop\node_modules\call-matcher\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> ejs@2.7.4 postinstall C:\test\demop\node_modules\ejs
> node ./postinstall.js

Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)

> core-js@2.6.11 postinstall C:\test\demop\node_modules\empower-core\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> core-js@2.6.11 postinstall C:\test\demop\node_modules\espurify\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> core-js@3.6.5 postinstall C:\test\demop\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now
deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated @nuxt/static@1.0.0: this feature has been moved to the core. you can directly use nuxt generate
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number
of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencie
s.
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade t
o fsevents 2.
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN notsup Unsupported engine for watchpack-chokidar2@2.0.0: wanted: {“node”:”<8.10.0″} (current: {“node”:”14.15.0
“,”npm”:”6.14.8″})
npm WARN notsup Not compatible with your version of node/npm: watchpack-chokidar2@2.0.0

> core-js@2.6.11 postinstall C:\test\demop\node_modules\@nuxt\babel-preset-app\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

> core-js@2.6.11 postinstall C:\test\demop\node_modules\babel-plugin-espower\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> core-js@2.6.11 postinstall C:\test\demop\node_modules\call-matcher\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> ejs@2.7.4 postinstall C:\test\demop\node_modules\ejs
> node ./postinstall.js

Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)

> core-js@2.6.11 postinstall C:\test\demop\node_modules\empower-core\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> core-js@2.6.11 postinstall C:\test\demop\node_modules\espurify\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> core-js@3.6.5 postinstall C:\test\demop\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now
deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated @nuxt/static@1.0.0: this feature has been moved to the core. you can directly use nuxt generate
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number
of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencie
s.
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade t
o fsevents 2.
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN notsup Unsupported engine for watchpack-chokidar2@2.0.0: wanted: {“node”:”<8.10.0″} (current: {“node”:”14.15.0
“,”npm”:”6.14.8″})
npm WARN notsup Not compatible with your version of node/npm: watchpack-chokidar2@2.0.0
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {“os”:”darwin”,”arch”:”an
y”} (current: {“os”:”win32″,”arch”:”x64″})

> core-js@2.6.11 postinstall C:\test\demop\node_modules\@nuxt\babel-preset-app\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

> core-js@2.6.11 postinstall C:\test\demop\node_modules\babel-plugin-espower\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> core-js@2.6.11 postinstall C:\test\demop\node_modules\call-matcher\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> ejs@2.7.4 postinstall C:\test\demop\node_modules\ejs
> node ./postinstall.js

Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)

> core-js@2.6.11 postinstall C:\test\demop\node_modules\empower-core\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> core-js@2.6.11 postinstall C:\test\demop\node_modules\espurify\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> core-js@3.6.5 postinstall C:\test\demop\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now
deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated @nuxt/static@1.0.0: this feature has been moved to the core. you can directly use nuxt generate
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number
of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencie
s.
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade t
o fsevents 2.
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN notsup Unsupported engine for watchpack-chokidar2@2.0.0: wanted: {“node”:”<8.10.0″} (current: {“node”:”14.15.0
“,”npm”:”6.14.8″})
npm WARN notsup Not compatible with your version of node/npm: watchpack-chokidar2@2.0.0
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {“os”:”darwin”,”arch”:”an
y”} (current: {“os”:”win32″,”arch”:”x64″})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules\watchpack-chokidar2\node_modules\chokidar
\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {“os”:”darwin”,”arch”:”a
ny”} (current: {“os”:”win32″,”arch”:”x64″})

> core-js@2.6.11 postinstall C:\test\demop\node_modules\@nuxt\babel-preset-app\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

> core-js@2.6.11 postinstall C:\test\demop\node_modules\babel-plugin-espower\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> core-js@2.6.11 postinstall C:\test\demop\node_modules\call-matcher\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> ejs@2.7.4 postinstall C:\test\demop\node_modules\ejs
> node ./postinstall.js

Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)

> core-js@2.6.11 postinstall C:\test\demop\node_modules\empower-core\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> core-js@2.6.11 postinstall C:\test\demop\node_modules\espurify\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> core-js@3.6.5 postinstall C:\test\demop\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

 

> core-js@2.6.11 postinstall C:\test\demop\node_modules\@nuxt\babel-preset-app\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

> core-js@2.6.11 postinstall C:\test\demop\node_modules\babel-plugin-espower\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> core-js@2.6.11 postinstall C:\test\demop\node_modules\call-matcher\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> ejs@2.7.4 postinstall C:\test\demop\node_modules\ejs
> node ./postinstall.js

Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)

> core-js@2.6.11 postinstall C:\test\demop\node_modules\empower-core\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> core-js@2.6.11 postinstall C:\test\demop\node_modules\espurify\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> core-js@3.6.5 postinstall C:\test\demop\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> nuxt@2.14.7 postinstall C:\test\demop\node_modules\nuxt
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now
deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated @nuxt/static@1.0.0: this feature has been moved to the core. you can directly use nuxt generate
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number
of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencie
s.
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade t
o fsevents 2.
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN notsup Unsupported engine for watchpack-chokidar2@2.0.0: wanted: {“node”:”<8.10.0″} (current: {“node”:”14.15.0
“,”npm”:”6.14.8″})
npm WARN notsup Not compatible with your version of node/npm: watchpack-chokidar2@2.0.0
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {“os”:”darwin”,”arch”:”an
y”} (current: {“os”:”win32″,”arch”:”x64″})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules\watchpack-chokidar2\node_modules\chokidar
\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {“os”:”darwin”,”arch”:”a
ny”} (current: {“os”:”win32″,”arch”:”x64″})
npm WARN require-extension-hooks-vue@3.0.0 requires a peer of vue-template-compiler@2.5.x but none is installed. You mu
st install peer dependencies yourself.

 

> core-js@2.6.11 postinstall C:\test\demop\node_modules\@nuxt\babel-preset-app\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

> core-js@2.6.11 postinstall C:\test\demop\node_modules\babel-plugin-espower\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> core-js@2.6.11 postinstall C:\test\demop\node_modules\call-matcher\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> ejs@2.7.4 postinstall C:\test\demop\node_modules\ejs
> node ./postinstall.js

Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)

> core-js@2.6.11 postinstall C:\test\demop\node_modules\empower-core\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> core-js@2.6.11 postinstall C:\test\demop\node_modules\espurify\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> core-js@3.6.5 postinstall C:\test\demop\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> nuxt@2.14.7 postinstall C:\test\demop\node_modules\nuxt

> core-js@2.6.11 postinstall C:\test\demop\node_modules\@nuxt\babel-preset-app\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

> core-js@2.6.11 postinstall C:\test\demop\node_modules\babel-plugin-espower\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> core-js@2.6.11 postinstall C:\test\demop\node_modules\call-matcher\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> ejs@2.7.4 postinstall C:\test\demop\node_modules\ejs
> node ./postinstall.js

Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)

> core-js@2.6.11 postinstall C:\test\demop\node_modules\empower-core\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> core-js@2.6.11 postinstall C:\test\demop\node_modules\espurify\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> core-js@3.6.5 postinstall C:\test\demop\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> nuxt@2.14.7 postinstall C:\test\demop\node_modules\nuxt
> opencollective || exit 0

:-:

> core-js@2.6.11 postinstall C:\test\demop\node_modules\@nuxt\babel-preset-app\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

> core-js@2.6.11 postinstall C:\test\demop\node_modules\babel-plugin-espower\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> core-js@2.6.11 postinstall C:\test\demop\node_modules\call-matcher\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> ejs@2.7.4 postinstall C:\test\demop\node_modules\ejs
> node ./postinstall.js

Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)

> core-js@2.6.11 postinstall C:\test\demop\node_modules\empower-core\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> core-js@2.6.11 postinstall C:\test\demop\node_modules\espurify\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> core-js@3.6.5 postinstall C:\test\demop\node_modules\core-js
> node -e “try{require(‘./postinstall’)}catch(e){}”

> nuxt@2.14.7 postinstall C:\test\demop\node_modules\nuxt
> opencollective || exit 0

:-:
.==-+:
.==. :+- .-=-

🎉 Successfully created project demo

To get started:

cd demop
npm run dev

To build & start for production:

cd demop
npm run build
npm run start

To test:

cd demop
npm run test

インストールが開始され、しばらくすると「cd demop npm run test」と表示されますので、これが表示されれば、インストールは完了となります。

■ローカルWebサーバー/環境でサイトを公開する

C:\test>cd demo

インストール後、上記のコマンドで新しく作成したプロジェクト「demo」に移動します。

npm run dev

移動後、上記のコマンドを入力し、Enterキーを押します。

i NuxtJS collects completely anonymous data about usage. 11:46:12
This will help us improving Nuxt developer experience over the time.
Read more on https://git.io/nuxt-telemetry

? Are you interested in participation? (Y/n)

Enterキーを押すと、「i NuxtJS collects completely anonymous data about usage.(i NuxtJSは、使用状況に関する完全に匿名のデータを収集します。)」といった内容が表示され、「Are you interested in participation? (Y/n)(参加に興味がありますか? (Y / n))」と質問されますので、今回は「Y」と入力し、Enterキーを押します。

╭───────────────────────────────────────╮
│ │
│ Nuxt.js @ v2.14.7 │
│ │
│ ▸ Environment: development │
│ ▸ Rendering: client-side │
│ ▸ Target: server │
│ │
│ Listening: http://localhost:3000/ │
│ │
╰───────────────────────────────────────╯

i Preparing project for development 11:48:32
i Initial build may take a while 11:48:32
√ Builder initialized 11:48:32
√ Nuxt files generated 11:48:32

√ Client
Compiled successfully in 9.62s

i Waiting for file changes 11:48:46
i Memory usage: 132 MB (RSS: 219 MB) 11:48:46
i Listening on: http://localhost:3000/

Enterキーを押すと、上記のように表示されますので、「i Listening on」と表示されている箇所のURLをコピーし、Webブラウザを起動します。起動後、WebブラウザのアドレスバーにコピーしたURLを貼り付けます。

貼り付けた後、アクセスします。

アクセスすると、サイトが公開されました。

コメント

タイトルとURLをコピーしました