npm报错:npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents): npm WA

今天运行命令 :npm i -s -d 时报错:

npm报错:

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"
os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

原来是这个原因:

是因为 fsevent是mac osx系统的,在win或者Linux下使用了 所以会有警告,忽略即可

你可能感兴趣的:(nodejs)