进行npm install时出现警告信息

npm install webpack -g
/root/.nvm/versions/node/v11.13.0/bin/webpack -> /root/.nvm/versions/node/v11.13.0/lib/node_modules/webpack/bin/webpack.js
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/webpack/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

+ webpack@4.39.3
added 322 packages from 198 contributors in 64.178s

 

解决:

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

 

发表评论 / Comment

用心评论~