Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > Node.js > не опознаётся nodemon


Автор: Areostar 26.11.2022, 21:21
Создал проект. установил экспресс ещё пару пакетов. Написал пару сток кода

установил 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 <areostar@gmail.com>",
  "license": "ISC",
  "dependencies": {
    "body-parser": "^1.20.1",
    "express": "^4.18.2",
    "mysql": "^2.18.1"
  },
  "devDependencies": {
    "nodemon": "^2.0.20"
  }
}




Автор: Areostar 3.12.2022, 08:37
установил глобально
 
Цитата

npm install -g nodemon


помогло

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)