简体   繁体   English

“ nodemon: command not found” 当我尝试使用 yarn 安装时

[英]" nodemon: command not found" while I am trying to install using yarn

I have installed nodemon using yarn but somehow it is showing command not found.我已经使用 yarn 安装了 nodemon,但不知何故它显示找不到命令。 I have been trying to get solution but not getting any yet.我一直在尝试获得解决方案,但还没有得到任何解决方案。 whenever I use nodemon command it shows nodemon: command not found每当我使用nodemon命令时,它都会显示nodemon: command not found

I have tried installing yarn global add nodemon and also yarn add nodemon .我试过安装yarn global add nodemonyarn add nodemon I had even tried installing dev dependencies.我什至尝试过安装开发依赖项。

Whenever I try installing using npm it works but not for yarn.每当我尝试使用npm安装时,它都有效但不适用于 yarn。 Can anyone help me out of it how can I solve this using yarn ?谁能帮我解决这个问题,我该如何使用yarn解决这个问题?

Use yarn nodemon command in terminal, it will work for yarn install.在终端中使用yarn nodemon命令,它将用于 yarn install。

example:例子:

yarn nodemon index

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM