简体   繁体   English

当我输入 npm install nodemon 时 nodemon 不工作

[英]nodemon not working when I enter npm install nodemon

npm 警告可选跳过可选依赖项:fsevents~2.3.2 node_modules\\chokidar\\node_modules\\fsevents :npm warn notsup 跳过可选依赖项:fsevents2.3.2 不受支持的平台:通缉::curr "os" "darwin" "arch" "any"

As it is a warning, not an error.因为它是一个警告,而不是一个错误。 It occurs because fsevents is an optional dependency, used only when project is run on macOS environment.出现这种情况是因为 fsevents 是一个可选的依赖项,仅在项目在 macOS 环境中运行时使用。 While installing any packege package.json consider as optional dependency.在安装任何package.json将其视为可选依赖项。

You can either install nodemon by force like;您可以像这样强制安装 nodemon;

npm i nodemon -f

or made it optional或使其成为可选

   npm install nodemon --no-optional

For more information check out the links below:有关更多信息,请查看以下链接:

How to solve npm install throwing fsevents warning on non-MAC OS? 如何解决 npm install 在非 MAC 操作系统上抛出 fsevents 警告?

npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.14 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY:fsevents@1.0.14 不受支持的平台

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

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