npm Flashcards
Installing TypeScript for VS is necessary for
msbuild to find and run correct version
Latest TypeScript for Visual Studio Tools” version
2.4.1.0
Where does the MS version of TypeScript live on your machine
C:\Program Files (x86)\Microsoft SDKs\TypeScript (only major/minor version numbers shown)
How do you install yarn?
npm install -g yarn
basic yarn commands
yarn add [package], yarn remove [package], “yarn install” (or just yarn) to install all dependencies
Add to different categories of dependencies
yarn add [package] –dev
yarn add [package] –peer
yarn add [package] –optional
What are peerDependencies
Peer dependencies are a special type of dependency that would only ever come up if you were publishing your own package
What are bundledDependencies
Normal dependencies are usually installed from the npm registry. Bundled dependencies are useful in cases normal dependencies are not sufficient
Show installed yarn packages
yarn list
Show cached yarn packages
yarn cache ls
Clear yarn cache
yarn cache clean
yarn why
will identify why a package has been installed, detailing which other packages depend upon it