7. Npmを使用した
Node.jsプロジェクトの構成
D:¥sample>npm init
<中略>
package name: (sample)
version: (1.0.0)
description: sample_project
entry point: (index.js)
test command:
git repository:
keywords: sample
author: masumitsu
license: (ISC) MIT
About to write to D:¥sample¥package.json:
<中略>
Is this OK? (yes) yes
D:¥sample>npm install --Save jquery
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN sample@1.0.0 No repository field.
+ jquery@3.3.1
added 1 package from 1 contributor and audited 1 package in 3.99s
found 0 vulnerabilities
╭───────────────────────────────────╮
│ │
│ New minor version of npm available! 6.1.0 -> 6.4.1 │
│ Changelog: https://github.com/npm/npm/releases/tag/v6.4.1 │
│ Run npm install -g npm to update! │
│ │
╰───────────────────────────────────╯
9. そして、実践へ
Electron サンプルの実行
# Clone the Quick Start repository
$ git clone https://github.com/electron/electron-quick-start
# Go into the repository
$ cd electron-quick-start
# Install the dependencies
$ npm install
# run Electron
$ npm start