Knitting Dependencies: A Yarn Unraveled

Report a typo

Hey there! This problem might be a bit unpredictable, but give it a go and let us know how you do!

Match each Yarn command to its corresponding functionality in managing JavaScript packages.

Match the items from left and right columns
yarn init
yarn add [package]
yarn remove [package]
yarn install
yarn run [script]
Uninstalls a package from the project's node_modules directory and removes it from the dependencies in package.json.
Installs all the dependencies listed in the project's package.json file, creating a yarn.lock file to ensure consistent installations.
Executes a script defined in the scripts section of the package.json file, which can be used to automate common tasks.
Installs a package and any packages that it depends on, updating the package.json and yarn.lock files.
Initializes a new JavaScript project and creates a package.json file to store project metadata and dependencies.

Create a free account to access the full topic