2017-06-20 110 views
1

編譯我使用如圖波紋管既Laravel ElixrLaravel混合和編譯SCSS文件錯誤而與一飲而盡

OS =的Windows 10

節點-v = V6。 11.0

NPM --v = 5.0.3

+-- [email protected] 
| `-- [email protected] 
| `-- [email protected] 
`-- [email protected] 
    `-- [email protected] 

和錯誤是無法找到模塊「可複製的,可讀」正如我在波紋管

> [05:51:53] Using gulpfile D:\www\fevrok.com\gulpfile.js 
> [05:51:53] Starting 'all'... 
> [05:51:53] Starting 'sass'... 
> [05:51:54] 'sass' errored after 713 ms 
> [05:51:54] Error: Cannot find module 'cloneable-readable' 
>  at Function.Module._resolveFilename (module.js:469:15) 
>  at Function.Module._load (module.js:417:25) 
>  at Module.require (module.js:497:17) 
>  at require (internal/module.js:20:19) 
>  at Object.<anonymous> (D:\www\fevrok.com\node_modules\gulp-concat\node_modules\vinyl\index.js:8:17) 
>  at Module._compile (module.js:570:32) 
>  at Object.Module._extensions..js (module.js:579:10) 
>  at Module.load (module.js:487:32) 
>  at tryModuleLoad (module.js:446:12) 
>  at Function.Module._load (module.js:438:3) 
> [05:51:54] 'all' errored after 745 ms 
> [05:51:54] Error in plugin 'run-sequence(sass)' 
> Message: 
>  Cannot find module 'cloneable-readable' 
> Details: 
>  code: MODULE_NOT_FOUND 
> Stack: 
> Error: Cannot find module 'cloneable-readable' 
>  at Function.Module._resolveFilename (module.js:469:15) 
>  at Function.Module._load (module.js:417:25) 
>  at Module.require (module.js:497:17) 
>  at require (internal/module.js:20:19) 
>  at Object.<anonymous> (D:\www\fevrok.com\node_modules\gulp-concat\node_modules\vinyl\index.js:8:17) 
>  at Module._compile (module.js:570:32) 
>  at Object.Module._extensions..js (module.js:579:10) 
>  at Module.load (module.js:487:32) 
>  at tryModuleLoad (module.js:446:12) 
>  at Function.Module._load (module.js:438:3) 

回答

1

我在我的情況下安裝缺少的模塊一樣,

npm install cloneable-readable 
npm install clone-buffer 

固定它,它是那些2以上

+0

它似乎也適用於我。 你有沒有發現爲什麼這個模塊沒有被安裝,可能爲他們開放了一個問題? – Ben2307

+0

@ Ben2307它已經有一段時間了,因爲該錯誤顯示,但我認爲它沒有安裝,因爲它被定義爲可選我會檢查然後我會打開一個問題,如果還沒有打開。 –