简体   繁体   English

如何解决“ fsevents@1.1.1不受支持的平台:通缉”

[英]How to solve “unsupported platform for fsevents@1.1.1: wanted”

I tried to install angular-cli, but I found this warn: 我尝试安装angular-cli,但发现此警告:

unsupported platform for fsevents@1.1.1: wanted"(OS windows 10). fsevents@1.1.1不受支持的平台:“需要”(OS Windows 10)。

I am beginner in Angular, so I am expecting simple solution to solve this. 我是Angular的初学者,所以我期望有简单的解决方案来解决此问题。

Error message screenshot: 错误消息截图: 错误信息

Create an optionalDependencies in package.json instead of devDependencies : 在package.json中创建一个optionalDependencies ,而不是devDependencies

"optionalDependencies": {
    "fsevents": "*"
}

This is just a Warning , so no need to take any further action. 这只是一个Warning ,因此无需采取任何进一步的措施。 Go ahead and run your code. 继续并运行您的代码。

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

相关问题 安装Angular时出现fsevents@1.2.4错误的不受支持的平台。 怎么解决呢? - I am getting Unsupported platform for fsevents@1.2.4 error while installing Angular. How to solve it? 安装Angular CLI时不受支持的fsevents平台错误 - Unsupported platform for fsevents error on installing Angular cli 如何解决文件的扩展名不受支持。 唯一支持的扩展名是“.ts”、“.tsx”、“.d.ts”、“.js”、“.jsx” - How to solve File has unsupported extension. The only supported extensions are '.ts', '.tsx', '.d.ts', '.js', '.jsx' 如何在 Angular CLI 1.1.1 版中将路由模块添加到现有模块? - How to add a routing module to an existing module in angular CLI version 1.1.1? Springboot应用程序在角度上出现fsevents错误 - fsevents error on angular with springboot application 什么是x.ngfactory.ts文件以及如何在使用@ angular / cli 1.1.1时调试这些文件 - what are x.ngfactory.ts files and how to debug these while I'm using @angular/cli 1.1.1 如果不是npm软件包,我应该如何/应该更新它? - How/should I update an npm package when it is not the wanted one? npm 错误! 依赖项“fsevents”的对象为空 - npm ERR! Object for dependency "fsevents" is empty 如何解决415不支持的媒体类型错误? - How to resolve 415 unsupported media type error? 如何修复415 /不支持的媒体类型错误? - How to fix the 415 / Unsupported media type error?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM