Создал проект. установил экспресс ещё пару пакетов. Написал пару сток кода
установил npm i nodemon --save--dev - установилось без происществий
пытаюсь запустить nodemon index.js получаю:
| Цитата | C:\Users\****************\backend> nodemon index nodemon : The term 'nodemon' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + nodemon index + ~~~~~~~ + CategoryInfo : ObjectNotFound: (nodemon:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
|
что за проблема такая? Раньше не встречал. через node всё запускается норм
Вот мой package.json
| Код | { "name": "simcrm", "version": "1.0.0", "description": "simple CRM for example", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "areostar <[email protected]>", "license": "ISC", "dependencies": { "body-parser": "^1.20.1", "express": "^4.18.2", "mysql": "^2.18.1" }, "devDependencies": { "nodemon": "^2.0.20" } }
|
|