codemirror / codemirror5

In-browser code editor (version 5, legacy)
http://codemirror.net/5/
MIT License
26.83k stars 4.97k forks source link

Not working. #6879

Closed AwesomeWithRex closed 2 years ago

AwesomeWithRex commented 2 years ago

I did npm install codemirror and then I did npm run codemirror and it says this: npm ERR! Missing script: "codemirror" npm ERR! npm ERR! To see a list of scripts, run: npm ERR! npm run

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\AWR_G\AppData\Local\npm-cache_logs\2022-02-10T20_23_05_068Z-debug-0.log

Does anyone know how to fix?

marijnh commented 2 years ago

There is no npm run codemirror. This is a library, not a tool (and note that even with tools, npm run toolname isn't how you run stuff you install with npm.)

AwesomeWithRex commented 2 years ago

Then how do I use this>