npm install的時候,報瞭如下內容 fsevents@....javascript
PS F:\web\ npm install npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) audited 20486 packages in 19.838s found 10 vulnerabilities (5 low, 4 moderate, 1 critical) run `npm audit fix` to fix them, or `npm audit` for details
這個問題在win/linux使用時,就會報警告, 由於fsevents的依賴屬於mac操做系統,因此 忽視便可前端
而且發現10個漏洞(found 10 vulnerabilities)java
控制檯提示 run 'npm audit fix' ,執行完了,以下:node
updated 4 packages in 25.094s fixed 1 of 10 vulnerabilities in 20486 scanned packages 2 vulnerabilities required manual review and could not be updated 2 package updates for 7 vulns involved breaking changes (use `npm audit fix --force` to install breaking changes; or refer to `npm audit` for steps to fix these manually)
npm audit :分析複雜的代碼,並找出漏洞和缺陷linux
npm audit fix :檢測項目依賴中的漏洞並自動安裝須要更新的有漏洞的依賴或修復web
最後根據提示執行npm audit fix --force 進行install,應該OK了npm
added 70 packages from 91 contributors, removed 21 packages and updated 1 package in 26.719s fixed 4 of 6 vulnerabilities in 20486 scanned packages 2 vulnerabilities required manual review and could not be updated 1 package update for 4 vulns involved breaking changes (installed due to `--force` option)
雖然不會前端,但也要會看提示,慢慢學習學習