2017-05-27 80 views
0

Cannon找到解決方案很長一段時間。當我用粉底看一切都很好,但每次我試圖用粉底打造我看到這個錯誤:基礎構建錯誤

[21:05:45] 'sass' errored after 5.91 s 
 
[21:05:45] Error in plugin 'gulp-uncss' 
 
Message: 
 
    Unexpected EOF 
 
Details: 
 
    domainEmitter: [object Object] 
 
    domain: [object Object] 
 
    domainThrown: false 
 
[21:05:45] 'build' errored after 6.31 s 
 
[21:05:45] 'default' errored after 6.31 s 
 
Error: [email protected] build: `gulp --production` 
 
Exit status 1 
 
    at EventEmitter.<anonymous> (/usr/local/lib/node_modules/foundation-cli/node_modules/npm/lib/utils/lifecycle.js:217:16) 
 
    at emitTwo (events.js:106:13) 
 
    at EventEmitter.emit (events.js:194:7) 
 
    at ChildProcess.<anonymous> (/usr/local/lib/node_modules/foundation-cli/node_modules/npm/lib/utils/spawn.js:24:14) 
 
    at emitTwo (events.js:106:13) 
 
    at ChildProcess.emit (events.js:194:7) 
 
    at maybeClose (internal/child_process.js:899:16) 
 
    at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

我也試圖刪除文件夾node_modules並重新安裝,但沒有幫助。如何解決它?

回答

1

我以前經歷過這個。有兩個已知的問題,我知道這種類型的錯誤的結果。

  1. 奇怪的空格或html文件中的字符。通常來自其他地方的複製和粘貼命令。請參閱此問題以供參考:https://github.com/zurb/foundation-emails/issues/637

  2. 節點本身的過時版本。嘗試更新節點版本,然後從項目中刪除node_modules並在項目目錄中運行npm install