vscode 编译工程问题总结

1.安装NuGet Package出错

The "path" argument must be of type string or an instance of Buffer of URL Received undefined

解决方法:

账号登录,重启vscode

(1)找到登录

(2)选择一个登录方式登录

(3)登录成功,重启vscode

2.编译时node错误,需要安装Nodejs:

node:无法将"node"识别为cmdlet.....

解决方法(参考博客):

node : 无法将"node"项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正 确,然后再试一次 的解决方案_咸鱼柴也有大厂梦的博客-CSDN博客

3.编译出现node Uncaught SyntaxError F:\TEST\test.exe:1MZ�

SyntaxError: Unexpected identifier

at internalCompileFunction (node:internal/vm:73:18)

at wrapSafe (node:internal/modules/cjs/loader:1178:20)

at Module._compile (node:internal/modules/cjs/loader:1220:27)

at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)

at Module.load (node:internal/modules/cjs/loader:1119:32)

at Module._load (node:internal/modules/cjs/loader:960:12)

at Function.executeUserEntryPoint as runMain (node:internal/modules/run_main:81:12)

at node:internal/main/run_main_module:23:47

Node.js v18.17.0

解决方法:

(1)由于node下载至D盘,打开vscode设置,修改安装位置:

(2)默认为"none",修改为"D:\\nodejs\\node.exe"

相关推荐
寥落半伤感14 小时前
在Pycharm中一键迅速安装包及查看虚拟环境中包名的方法
ide·python·pycharm
进击的炸酱面15 小时前
如何在服务器中使用codex?代理配置一图详解
ide·vscode·ssh
持敬chijing15 小时前
VSCode 远程开发环境完整搭建指南:汉化、SSH 免密连接与版本更新锁定
ide·vscode·ssh
郝学胜-神的一滴1 天前
C++11 工程级应用 09:告别无谓拷贝,解锁高性能移动语义
开发语言·数据结构·c++·vscode·软件工程·visual studio
weixin_402486342 天前
VS Code Codex/Claude Extension 无法安装 / 无法正常打开
linux·服务器·vscode
2501_915909062 天前
SwiftUI 和 UIKit 怎么选?两代 UI 框架的适用范围
vscode·ios·objective-c·个人开发·swift·敏捷流程
golang学习记2 天前
VS Code 新UI被曝重大bug:菜单栏消失了
vscode·bug
2501_915918412 天前
在Windows10上使用VSCode和Code Runner搭建Swift开发环境详细步骤
ide·vscode·ios·objective-c·个人开发·swift·敏捷流程
零基础的修炼2 天前
CUDA知识汇总
开发语言·c++·编辑器
墨白曦煜2 天前
穿透 IDE 的障眼法:Git 四大工作区与核心数据流转解析
ide·git