升级后无法使用 Elixir

Unable to use Elixir after upgrade

我将我的 Elixir 版本从 3.0 升级到了 5.0。 npm update 命令 运行 很好但是当我尝试 运行 gulp --production 它失败。

我给出了低于我得到的错误。

我的 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"
  }
}

当 运行ning gulp --production 我得到以下错误

/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)

您还需要升级 Node。

您可以在这里阅读如何更新升级:
https://askubuntu.com/questions/426750/how-can-i-update-my-nodejs-to-the-latest-version