npm Flashcards

1
Q

Installing TypeScript for VS is necessary for

A

msbuild to find and run correct version

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Latest TypeScript for Visual Studio Tools” version

A

2.4.1.0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Where does the MS version of TypeScript live on your machine

A

C:\Program Files (x86)\Microsoft SDKs\TypeScript (only major/minor version numbers shown)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do you install yarn?

A

npm install -g yarn

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

basic yarn commands

A

yarn add [package], yarn remove [package], “yarn install” (or just yarn) to install all dependencies

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Add to different categories of dependencies

A

yarn add [package] –dev
yarn add [package] –peer
yarn add [package] –optional

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are peerDependencies

A

Peer dependencies are a special type of dependency that would only ever come up if you were publishing your own package

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are bundledDependencies

A

Normal dependencies are usually installed from the npm registry. Bundled dependencies are useful in cases normal dependencies are not sufficient

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Show installed yarn packages

A

yarn list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Show cached yarn packages

A

yarn cache ls

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Clear yarn cache

A

yarn cache clean

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

yarn why

A

will identify why a package has been installed, detailing which other packages depend upon it

How well did you know this?
1
Not at all
2
3
4
5
Perfectly