~/Documents/Node$ mkdir SampleConsole
~/Documents/Node$ cd SampleConsole/
~/Documents/Node/SampleConsole$ npm init -y
Wrote to /home/atsushihondoh/Documents/Node/SampleConsole/package.json:
{
"name": "sampleconsole",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC"
}
~/Documents/Node/SampleConsole$ npm install typescript @types/node --save-dev
added 2 packages in 3s
~/Documents/Node/SampleConsole$ tsc --init
message TS6071: Successfully created a tsconfig.json file.