惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

A
About on SuperTechFans
小众软件
小众软件
WordPress大学
WordPress大学
Microsoft Azure Blog
Microsoft Azure Blog
Recent Announcements
Recent Announcements
博客园 - 三生石上(FineUI控件)
博客园_首页
N
Netflix TechBlog - Medium
IT之家
IT之家
H
Help Net Security
博客园 - 聂微东
Google DeepMind News
Google DeepMind News
罗磊的独立博客
T
Tailwind CSS Blog
F
Fortinet All Blogs
Hugging Face - Blog
Hugging Face - Blog
MongoDB | Blog
MongoDB | Blog
V
V2EX
量子位
云风的 BLOG
云风的 BLOG
爱范儿
爱范儿
博客园 - 司徒正美
The Cloudflare Blog
Engineering at Meta
Engineering at Meta

博客园 - 轻烟随风

SAP FICO财务模块常见BAPI函数清单 SAP 中 MB52 用到的核心函数和表 SAP SMW0 配置EXCEL 上载模板,供其他tcode 下载模板 SAP ABAP 查看TCODE enhanced 增强点,se38 批量查看 利用 Sapnco 在.net/c# 中跨系统调用 SAP RFC 功能,执行SAP中的函数 利用 SapNwRfc 在.net/c# 中跨系统调用 SAP RFC 功能,执行SAP中的函数 SAP ABAP 在alv报表上建立菜单栏工具栏 SAP ABAP ALSM_EXCEL_TO_INTERNAL_TABLE 导入excel 和 GUI_UPLOAD 导入 txt SAP ABAP BAPI_PRODORD_CHANGE 修改生产订单基本信息 项目管理-十大管理-信息系统项目管理师 sql server sa 账号登录失败,需开启混合身份验证 SAP ABAP collect 函数 SAP ECC 740 创建表的索引 Oracle 查看死锁的相关sql 语句代码 SAP ABAP 函数CS_BOM_EXPL_MAT_V2获取CS03的bom 列表 SAP 客户端 GUI 的画面功能介绍 SAP ABAP 中的 STOP EXIT CHECK 的区别 SAP ABAP ISM_SD_GET_PRICING_CONDITIONS 订单价格定价 SAP ABAP 弹出对话框进行确认提醒的函数POPUP_TO_CONFIRM
Vue pnpm run dev 出现 'vite' 不是内部或外部命令,...
轻烟随风 · 2025-02-11 · via 博客园 - 轻烟随风

'vite' 不是内部或外部命令,也不是可运行的程序
或批处理文件。

但是在本机其他项目文件夹却能使用 pnpm run dev 

先尝试使用 npm i,出现报错:

npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: pure-admin-thin@5.7.0
npm error Found: eslint@9.20.0
npm error node_modules/eslint
npm error   dev eslint@"^9.4.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer eslint@"^8.56.0" from @typescript-eslint/parser@7.18.0
npm error node_modules/@typescript-eslint/parser
npm error   dev @typescript-eslint/parser@"^7.13.0" from the root project
npm error   peer @typescript-eslint/parser@"^7.0.0" from @typescript-eslint/eslint-plugin@7.18.0
npm error   node_modules/@typescript-eslint/eslint-plugin
npm error     dev @typescript-eslint/eslint-plugin@"^7.13.0" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error C:\guo\nodejs\node_cache\_logs\2025-02-11T01_26_17_742Z-eresolve-report.txt
npm error A complete log of this run can be found in:

解决方法:

1 .删除 项目文件夹下的 node_modules

2. 执行 pnpm i

ockfile is up to date, resolution step is skipped
Packages: +834
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
Downloading echarts@5.5.0: 10.37 MB/10.37 MB, done
Downloading element-plus@2.7.5: 8.70 MB/8.70 MB, done
 WARN  GET https://registry.npmmirror.com/tslib/-/tslib-2.4.0.tgz error (ERR_SOCKET_TIMEOUT). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmmirror.com/@vue/compiler-sfc/-/compiler-sfc-3.4.27.tgz error (ECONNRESET). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmmirror.com/vite/-/vite-5.3.0.tgz error (ECONNRESET). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmmirror.com/typescript/-/typescript-5.4.5.tgz error (ECONNRESET). Will retry in 10 seconds. 2 retries left.
Downloading typescript@5.4.5: 5.83 MB/5.83 MB, done
 WARN  GET https://registry.npmmirror.com/rollup-plugin-visualizer/-/rollup-plugin-visualizer-5.12.0.tgz error (ECONNRESET). Will retry in 10 seconds. 2 retries left.
 WARN  GET https://registry.npmmirror.com/@vue/compiler-sfc/-/compiler-sfc-3.4.27.tgz error (ECONNRESET). Will retry in 1 minute. 1 retries left.
 WARN  GET https://registry.npmmirror.com/vite/-/vite-5.3.0.tgz error (ECONNRESET). Will retry in 1 minute. 1 retries left.
Progress: resolved 834, reused 17, downloaded 812, added 834, done

以上只截取部分图。

3.重新运行 pnpm run dev ,成功!