'How to install React-bootstrap and markdown with Yarn?

I created the app wiyh npx-create-app, yarn start workes well. But when I try to install React-bootstrap and marked with Yarn:

yarn add react-bootstrap bootstrap
yarn add marked

The modules doesn't appeared in the package.json file. Doesn't worked. This is the console: enter image description here

Then I tried with npm :

npm install react-bootstrap bootstrap 
npm install marked

That's worked well.

Why that's doesn't work with yarn ? I tried also to make yarn install before but the console displayed "info No lockfile found". So I'm litle confused with yarn. What I have to do, in which order ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source