npm 安裝@material-ui/core @material-ui/icons @material-ui/labs @react-google-maps/api axios google-map-react
npm 錯誤!代碼 ERESOLVE npm 錯誤! ERESOLVE 無法解決 npm 錯誤! npm 錯誤! While resolving: @testing-library/[email protected] npm 錯誤! Found: [email protected] npm 錯誤! node_modules/react npm 錯誤! npm 錯誤! For a full report see: npm 錯誤! C:\Users\SENSA\AppData\Local\npm-cache_logs\2023-04-07T05_56_29_194Z-eresolve-report.txt
npm 錯誤! A complete log of this run can be found in: npm 錯誤! C:\Users\SENSA\AppData\Local\npm-cache_logs\2023-04-07T05_56_29_194Z-debug-0.log
可能你的npm版本不合適。您可以嘗試以下步驟:
使用 --legacy-peer-deps
安裝依賴項,運行 npm install @material-ui/core @material-ui/icons @material-ui/labs @react-google-maps/api axios google -map-react --legacy-peer-deps
。
如果仍然報錯,請刪除所有node_modules,然后再次運行該命令。
如果仍然報錯,請使用 npm --version
檢查您的 npm 版本,然后更新到最新的 npm 版本即可解決此問題。
微信掃碼
關(guān)注PHP中文網(wǎng)服務號
QQ掃碼
加入技術(shù)交流群
Copyright 2014-2025 http://m.miracleart.cn/ All Rights Reserved | php.cn | 湘ICP備2023035733號