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.

Also, I need to know, if I can intergrate editor from Codemirror 5.65.x or version 6 into grapesJS instead of its own editor which is codemirror again but I am trying otherwise because im unable to implement the search and replace in the grapes JS.

And does Codemirror have a requirement of node version. I use node v10.65.x in my project. Can i use Codemirror 6 or 5.65.x