-y
: Assumes "yes" as the default answer for all prompts.-D
: Installs packages only as development dependencies.
npm init -y
npm i typescript -D
npx tsc [filename].ts
You need to use
npx
when executing NodeJS locally.
npm i ts-node -D
npx ts-node [filename].ts
npm i eslint -D