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找了很久,也没找到有效解决方法,

NodeService Ensure that Node.js is installed and can be found in one of the PATH directories_第1张图片

结果看到大神的一段话,我也常识性的把nodejs.exe复制到项目内,设置成总是复制。
NodeService Ensure that Node.js is installed and can be found in one of the PATH directories_第2张图片

NodeService Ensure that Node.js is installed and can be found in one of the PATH directories_第3张图片

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

.NET CORE 版本 2.2

你可能感兴趣的:(NodeService Ensure that Node.js is installed and can be found in one of the PATH directories)