![](/img/trans.png)
[英]Webpack error when i install react.(when i try to use “npm start” to start a sever)
[英]I can not do "npm install" to my project in React. When I running "npm install" i get error massage
當我運行“npm install”時,我收到此錯誤消息:
found 15369 vulnerabilities (15366 low, 3 high)
run `npm audit fix` to fix them, or `npm audit` for details
我嘗試運行“npm audit”,但收到此錯誤消息:
found 15369 vulnerabilities (15366 low, 3 high) in 2153 scanned packages
run `npm audit fix` to fix 15366 of them.
3 vulnerabilities require manual review. See the full report for details.
我嘗試運行“npm audit fix --force”,但收到此錯誤消息:
fixed 15366 of 15369 vulnerabilities in 2153 scanned packages
3 vulnerabilities required manual review and could not be updated
我嘗試刪除我的 package-lock.json 並刪除 node_modules 文件夾,然后再次嘗試安裝 npm。 我設置了這個警告按摩:
found 1 high severity vulnerability
run `npm audit fix` to fix them, or `npm audit` for details
也許你會知道問題出在哪里?
這不是錯誤。 這是一條警告信息。 應該不會影響你的項目運行大部分情況。
也許您對 inte.net 連接有問題或對 inte.net 數據進行了一些過濾?
這是一條警告信息。 不用擔心。
npm start
你的項目將在localhost
上啟動
嗨,我遇到了類似的問題,這對我有用。
package-lock.json
。%USERPROFILE%\Application Data\npm\node_modules
。 嘗試再次運行npm i
如果該解決方案不適用於 npm 並使用 yarn 並至少暫時安裝軟件包。
檢查 package.json 和 package-lock.json 中包的依賴項。 有時這可能來自於同一節點package的不同版本。您可以先嘗試npm更新以嘗試盡可能自動更新。 如果這不起作用,請查找沖突的版本。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.