TypeScript

Updated Jul 23, 2024

Package Manager

I use yarn berry package manager.

It’s because it was my first package manager when I started learning typescript.

And then, when i googled about it, I found that it’s better than other package manager.

So, I use it.

Install

1
2
3
$ npm install -g yarn
$ yarn init
$ yarn set version berry

Use

1
2
3
$ npm install -g yarn
$ yarn add ?
$ yarn add -D @types/?
  • For vim lsp no error
1
$ yarn dlx @yarnpkg/sdks vim