Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/299.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/apache-spark/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# VS2012生成失败,代码为9009_C#_Visual Studio 2012_Post Build Event - Fatal编程技术网

C# VS2012生成失败,代码为9009

C# VS2012生成失败,代码为9009,c#,visual-studio-2012,post-build-event,C#,Visual Studio 2012,Post Build Event,我的生成失败,出现以下错误: Error 21 The command "node ../tools/r.js -o ../tools/build_default.js node ../tools/r.js -o ../tools/build_intake.js" exited with code 9009. 在buildevents->Post Build event命令行中有以下内容 node ../tools/r.js -o ../tools/build_default.js

我的生成失败,出现以下错误:

Error   21  The command "node ../tools/r.js -o ../tools/build_default.js
node ../tools/r.js -o ../tools/build_intake.js" exited with code 9009.  
在buildevents->Post Build event命令行中有以下内容

node ../tools/r.js -o ../tools/build_default.js
node ../tools/r.js -o ../tools/build_intake.js
我还试着给出整个路径,如:

node C:/inetpub/wwwroot/someABC/Website/tools/r.js -o C:/inetpub/wwwroot/someABC/Website/tools/build_default.js
node C:/inetpub/wwwroot/someABC/Website/tools/r.js -o C:/inetpub/wwwroot/someABC/Website/tools/build_intake.js
仍然失败,错误相同:退出,错误代码为9009

有什么想法吗


谢谢

根据Tony的建议,重新启动后我再次尝试,结果成功了

代码9009表示找不到文件。仔细检查以确保可以通过PATH环境变量找到node.exe。如果在VS运行时手动添加或安装了节点,则必须重新启动VS的所有实例以使其识别更改。重新启动后我再次尝试,结果成功!!