nodejs 나 electron 개발 시 visual studio code 가 좀 더 편한거 같다.
터미널을 연다.
터미널에서
~> npm init
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.
See `npm help init` for definitive documentation on these fields
and exactly what they do.
Use `npm install <pkg>` afterwards to install a package and
save it as a dependency in the package.json file.
Press ^C at any time to quit.
package name: (pjtest)
version: (1.0.0)
description: Test Project
entry point: (index.js)
test command: start
git repository:
keywords:
author:
license: (ISC) MIT
About to write to C:\dev\vstudio\workspace\pjTest\package.json:
{
"name": "pjtest",
"version": "1.0.0",
"description": "Test Project",
"main": "index.js",
"scripts": {
"test": "start"
},
"author": "",
"license": "MIT"
}
Is this OK? (yes) y
package.json 이 생성되었으면 반은 성공
일렉트론을 설치해 보자
~> npm install --save-dev electron
added 87 packages, and audited 88 packages in 21s
6 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities