網站首頁 編程語言 正文
npm 報錯:
PS D:\Software\HBuilderX\Workspace\vant\vant-demo\vant\vue2> npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: vant-demo-vue2@1.0.0
npm ERR! Found: eslint@4.19.1
npm ERR! node_modules/eslint
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"^5.0.0 || ^6.0.0" from eslint-plugin-vue@6.2.2
npm ERR! node_modules/eslint-plugin-vue
npm ERR! dev eslint-plugin-vue@"^6.0.1" from the root project
npm ERR!
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\Administrator\AppData\Local\npm-cache\eresolve-report.txt for a full report.
查看當前npm 版本
npm -v
7.x版本的vpm 要正常在vscode上使用的指令:
npm i --legacy-peer-deps
現在就可以使用了
原文鏈接:https://blog.csdn.net/weixin_43873198/article/details/120739987
相關推薦
- 2022-04-18 python?如何讀取列表中字典的value值_python
- 2022-09-05 卷積層計算量(FLOPS)和參數量的計算
- 2022-02-27 Spring Boot -- 創建工程時 Spring Initializr 報錯 Error:co
- 2023-11-11 tensorflow分布式報錯:tensorflow.python.framework.errors
- 2022-07-03 C語言詳細分析講解內存管理malloc?realloc?free?calloc函數的使用_C 語言
- 2022-07-13 Zookeeper集群 + Kafka集群
- 2022-06-15 golang中net的tcp服務使用_Golang
- 2023-01-27 解決Pycharm模塊安裝慢問題的兩種方法_python
- 最近更新
-
- window11 系統安裝 yarn
- 超詳細win安裝深度學習環境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優雅實現加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發現-Nac
- Spring Security之基于HttpR
- Redis 底層數據結構-簡單動態字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支