npm WARN optional SKIPPING OPTIONAL DEPENDENCY: 
fsevents@1.2.7 (node_modules\fse vents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: 
Unsupported platform for fsevents@ 1.2.7: wanted {"os":"darwin","arch":"any"} 
(current: {"os":"win32","arch":"x64"} )

对配置文件gulpfile.js和package.json执行npm install命令时,会出现上面的提示是什么原因呢

1.1.翻译:

npm警告: 该依赖是可选的。 注释: 跳过可选依赖:fsevents@1.2.7 (node_modules\fse vents)

npm警告: 当前平台(操作系统)不支持(notsup)该依赖fsevents@1.2.7。

注释: fsevents@1.2.7 不支持的平台 : 当前平台是{”os”:”win32″,”arch”:”x64″}该操作系统是window 64位的。

fsevents@1.2.7想要的平台 是 {“os”: “darwin”, “arch”: “any”} 该依赖用于苹果操作系统上。

1.2.也就是说:

fsevents@1.2.7只是在苹果操作系统上才会被使用到。在window操作系统上是不需要它的

Leave a Reply

邮箱地址不会被公开。 必填项已用*标注