NodeService Ensure that Node.js is installed and can be found in one of the PATH directories

今天发布NodeService到服务器,服务器环境是window server 2012

一直报错:

[1] Ensure that Node.js is installed and can be found in one of the PATH directories.
** Current PATH enviroment variable is: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;**
** C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Microsoft\Web Platform Installer;**
** C:\Program Files\dotnet;C:\Program Files (x86)\dotnet;C:\Users\Administrator.dotnet\tools**
** Make sure the Node executable is in one of those directories, or update your PATH.**

当时一脸蒙蔽,找百度啊,找翻了,一直以为是环境变量的问题,装了nodejs又卸载,反反复复的尝试和添加环境变量都无果,
该报错还是出错,然后在google找了很久,也没找到有效解决方法,

结果看到大神的一段话,我也常识性的把nodejs.exe复制到项目内,设置成总是复制。

项目成功运行啦。填坑,随手一记。

.NET CORE 版本 2.2

posted @   Homegu  阅读(465)  评论(0编辑  收藏  举报
编辑推荐:
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
阅读排行:
· winform 绘制太阳,地球,月球 运作规律
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· AI与.NET技术实操系列(五):向量存储与相似性搜索在 .NET 中的实现
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
你的浏览器不支持canvasr
点击右上角即可分享
微信分享提示