How to install codemirror6 from npm?

Hello Team,
I want to use codemirror 6.x from npm.
Do you have any npm command to install it.

The docs list the names of the packages. You should probably start there.

If this could be useful, here the list of packages I installed for codemirror 6:

    "@codemirror/commands": "^0.19.8",
    "@codemirror/fold": "^0.19.3",
    "@codemirror/highlight": "^0.19.7",
    "@codemirror/history": "^0.19.2",
    "@codemirror/lang-markdown": "^0.19.6",
    "@codemirror/legacy-modes": "^0.19.1",
    "@codemirror/search": "^0.19.9",
    "@codemirror/state": "^0.19.9",
    "@codemirror/stream-parser": "^0.19.7",
    "@codemirror/view": "^0.19.47",

Thank you @crystalfp

Here’s a minimal editor in CodeSandbox that might help.

The basic-setup has examples of more extensions that can be useful.