最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - bash: nodemon: command not found - Stack Overflow

programmeradmin1浏览0评论

I have been using nodemon for past few months now. It's just that today I got this error. I tried uninstalling nodemon and the reinstalled it. I also forced install it. Nothing worked. Whenever I run the nodemon mand

bash: nodemon: mand not found

pops up.

There are other answers too and I have looked them all up. They haven't worked for me.

I have been using nodemon for past few months now. It's just that today I got this error. I tried uninstalling nodemon and the reinstalled it. I also forced install it. Nothing worked. Whenever I run the nodemon mand

bash: nodemon: mand not found

pops up.

There are other answers too and I have looked them all up. They haven't worked for me.

Share Improve this question edited Aug 4, 2017 at 10:03 Ankur Chavda asked Aug 4, 2017 at 10:00 Ankur ChavdaAnkur Chavda 1736 silver badges17 bronze badges 3
  • stackoverflow./questions/35530930/… – Jeremy Thille Commented Aug 4, 2017 at 10:01
  • @JeremyThille I looked through it, doesn't work. – Ankur Chavda Commented Aug 4, 2017 at 10:02
  • Possible duplicate of nodemon not working: -bash: nodemon: mand not found – Anurag Singh Bisht Commented Aug 4, 2017 at 10:23
Add a ment  | 

3 Answers 3

Reset to default 8

I have faced this error once, and in my package.json, I updated the nodemon location and it worked.

Below code is in my package.json

"start" : "./node_modules/.bin/nodemon server.js"

and then after running npm start it works.

If you don't have nodemon installed globally try to do that. I had the same issue but after installing it globally whenever I ran the mand it work

sudo npm install -g nodemon

I hope this will help

This is down to your global variables.

Ensure npm is included in your PATH var and there is no conflicting npm directories

echo %PATH%

If it is, get your npm root, Ensure the npm in your global path matches the npm root

npm root -g

Navigate there and ensure the "nodemon" file is there. This is where all the npm install -g files are installed. If not run npm i nodemon -g and confirm that it has been added to the npm root folder.

Having all of these boxes ticked will get these globals are working for you again.

发布评论

评论列表(0)

  1. 暂无评论