2013-10-15 121 views
0

我將我的項目從ubuntu移動到windows,並且requirejs插件不工作!如何在maven中設置requirejs插件

我只是改變了路徑的NodeJS

<nodeExecutable>C:/Program Files/nodejs/node</nodeExecutable> 

而且行家返回此

[ERROR] Failed to execute goal com.github.mcheely:requirejs-maven-plugin:2.0.0:o 
ptimize (default) on project interactBack: r.js exited with an error. -> [Help 1 
] 

我有CMD測試我的項目,它工作的樂趣!

node r.js -o app.build.js 

什麼問題?

+0

只是一個受過教育的猜測,但不會Windows需要在路徑中正斜槓?即「C:\ Program Files \ ...」 – kryger

+0

我同意道路上一定有什麼問題!但你的猜測是不正確的。 –

回答

0

我得到的答案!

正如由作者

nodeExecutable 

An optional path to a nodejs executable. This should not be needed if node is in 
the system path as 'node' or 'nodejs'; 

所以,只要刪除標籤說。