2021-11-06

当在Visual Studio 2019中尝试编译项目时,可能会遇到‘系统找不到指定文件’的错误。这通常是因为源文件不在正确工程目录下。解决方法是确保在新建工程的‘源文件’下创建或添加文件,通过‘新建项(W)’操作,然后重新编译即可成功解决问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Visual Studio 2019 编译文件时,报错

无法启动程序“C:\Users\fujm\source\repos\Project1\Project1\Debug\源.exe”。系统找不到指定文件

原因

:创建文件时不是在所在工程下创建在这里插入图片描述

解决

:选中新建工程下的“源文件”,新建项(W)
在这里插入图片描述
进行如下配置
编译成功
在这里插入图片描述

npm install postcss-pxtorem autoprefixer amfe-flexible -D npm error code ERESOLVE npm error ERESOLVE could not resolve npm error npm error While resolving: @vue/cli-plugin-eslint@4.5.19 npm error Found: eslint@7.32.0 npm error node_modules/eslint npm error peer eslint@">= 7.28.0" from @vue/eslint-config-prettier@7.1.0 npm error node_modules/@vue/eslint-config-prettier npm error dev @vue/eslint-config-prettier@"^7.0.0" from the root project npm error peer eslint@">= 4.12.1" from babel-eslint@10.1.0 npm error node_modules/babel-eslint npm error dev babel-eslint@"^10.1.0" from the root project npm error 6 more (eslint-config-prettier, eslint-plugin-prettier, ...) npm error npm error Could not resolve dependency: npm error peer eslint@">= 1.6.0 < 7.0.0" from @vue/cli-plugin-eslint@4.5.19 npm error node_modules/@vue/cli-plugin-eslint npm error dev @vue/cli-plugin-eslint@"^4.5.15" from the root project npm error npm error Conflicting peer dependency: eslint@6.8.0 npm error node_modules/eslint npm error peer eslint@">= 1.6.0 < 7.0.0" from @vue/cli-plugin-eslint@4.5.19 npm error node_modules/@vue/cli-plugin-eslint npm error dev @vue/cli-plugin-eslint@"^4.5.15" 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:\Users\admin\AppData\Local\npm-cache\_logs\2025-03-05T03_23_29_961Z-eresolve-report.txt npm error A complete log of this run can be found in: C:\Users\admin\AppData\Local\npm-cache\_logs\2025-03-05T03_23_29_961Z-debug-0.log
03-08
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值