2017-04-06 84 views
0

我新的角度,當我嘗試在角文件夾中運行一飲而盡,我得到以下錯誤:錯誤:產卵NG構建--watch - 輸出路徑,同時運行一飲而盡

[08:24:14] Using gulpfile .../angular/gulpfile.js 
[08:24:14] Starting 'styles'... 
[08:24:14] Starting 'angular'... 
[08:24:14] Finished 'angular' after 6.44 ms 
[08:24:14] Starting 'server'... 
[08:24:14] Finished 'server' after 19 ms 
[08:24:14] Starting 'watch'... 
[08:24:14] Finished 'watch' after 53 ms 
events.js:141 
     throw er; // Unhandled 'error' event 
    ^

Error: spawn ng build --watch --output-path ../../public/angular/dist ENOENT 
    at exports._errnoException (util.js:870:11) 
    at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32) 
    at onErrorNT (internal/child_process.js:344:16) 
    at doNTCallback2 (node.js:441:9) 
    at process._tickCallback (node.js:355:17) 
    at Function.Module.runMain (module.js:469:11) 
    at startup (node.js:136:18) 
    at node.js:963:3 

我已經跟着similar post並試過:

rm -rf node_modules && npm cache clean && npm install 

但是,仍然得到同樣的錯誤。

回答