2016-05-11 58 views
0

我將我的Elixir版本從3.0升級到5.0。 npm更新命令運行良好,但是當我嘗試運行gulp --production它失敗。升級後無法使用Elixir

我給出了我得到的錯誤。

我的package.json文件(這應該是等同於一個在https://github.com/laravel/laravel/blob/master/package.json

{ 
    "private": true, 
    "scripts": { 
    "prod": "gulp --production", 
    "dev": "gulp watch" 
    }, 

"devDependencies": { 
"gulp": "^3.9.1", 
"laravel-elixir": "^5.0.0", 
"bootstrap-sass": "^3.3.0" 
    } 
} 

當運行一飲而盡 - 生產,我得到下面的錯誤

/home/vagrant/Code/laravel/node_modules/laravel- elixir/node_modules/gulp- cssnano/node_modules/cssnano/node_modules/postcss/lib/lazy-result.js:157 
    this.processing = new Promise(function (resolve, reject) { 
         ^
ReferenceError: Promise is not defined 
at LazyResult.async (/home/vagrant/Code/laravel/node_modules/laravel-elixir/node_modules/gulp-cssnano/node_modules/cssnano/node_modules/postcss/lib/lazy-result.js:157:31) 
at LazyResult.then (/home/vagrant/Code/laravel/node_modules/laravel-elixir/node_modules/gulp-cssnano/node_modules/cssnano/node_modules/postcss/lib/lazy-result.js:79:21) 
at Transform.stream._transform (/home/vagrant/Code/laravel/node_modules/laravel-elixir/node_modules/gulp-cssnano/index.js:27:17) 
at Transform._read (_stream_transform.js:179:10) 
at Transform._write (_stream_transform.js:167:12) 
at doWrite (_stream_writable.js:226:10) 
at writeOrBuffer (_stream_writable.js:216:5) 
at Transform.Writable.write (_stream_writable.js:183:11) 
at write (/home/vagrant/Code/laravel/node_modules/laravel-elixir/node_modules/gulp-concat/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:623:24) 
at flow (/home/vagrant/Code/laravel/node_modules/laravel-elixir/node_modules/gulp-concat/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:632:7) 
+0

可能要同時更新您的節點的版本? – Anderscc

+1

是的。你現在的工作感謝 –

+0

不用擔心。很高興它工作。 – Anderscc

回答

相關問題