鍍金池/ 問答/Linux  HTML/ 使用npm安裝東西的時(shí)候。老是報(bào)如下錯(cuò)誤。求解怎么回事。

使用npm安裝東西的時(shí)候。老是報(bào)如下錯(cuò)誤。求解怎么回事。

clipboard.png

npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself. npm WARN The package @nuxtjs/axios is included as both a dev and production dependency. npm WARN The package @nuxtjs/proxy is included as both a dev and production dependency. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.3 (node_modulesfsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) + vue-clipboard2@0.1.1 updated 1 package in 30.863s [!] 45 vulnerabilities found [20043 packages audited] Severity: 10 Low | 28 Moderate | 6 High | 1 Critical Run npm audit for more detail

回答
編輯回答
冷咖啡

vulnerabilities 漏洞,按照它的指示,npm audit 試試看?

2018年4月2日 04:31
編輯回答
久愛她

這不是警告信息嗎

2018年5月7日 04:42
編輯回答
亮瞎她

這是警告(WARN,一般是黃色),不是錯(cuò)誤(ERROR,一般是紅色)

警告一般不會(huì)影響的程序的正常運(yùn)行,出現(xiàn)的原因有可能是包升級(jí),比如2.x.x版本升級(jí)到3.x.x版本說依賴的包也需要升級(jí),但是你不升級(jí)也還能用,估計(jì)到下個(gè)大版本就會(huì)提示錯(cuò)誤了

2018年2月3日 00:59