-----> Node.js app detected
-----> Creating runtime environment
NPM_CONFIG_LOGLEVEL=error
NODE_VERBOSE=false
NODE_ENV=production
NODE_MODULES_CACHE=true
-----> Installing binaries
engines.node (package.json): 8.10.0
engines.npm (package.json): 5.6.0
Resolving node version 8.10.0...
Downloading and installing node 8.10.0...
npm 5.6.0 already installed with node
-----> Restoring cache
Skipping cache restore (not-found)
-----> Building dependencies
Installing node modules (package.json + package-lock)
> uws@9.14.0 install
/tmp/build_f0baaa8f0c58c02404819263757b80a3/node_modules/uws
> node-gyp rebuild > build_log.txt 2>&1 || exit 0
> node-sass@4.9.0 install
/tmp/build_f0baaa8f0c58c02404819263757b80a3/node_modules/node-sass
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.9.0/linux-x64-57_binding.node
Download complete
Binary saved to /tmp/build_f0baaa8f0c58c02404819263757b80a3/node_modules/node-sass/vendor/linux-x64-57/binding.node
Caching binary to /tmp/npmcache.FmLbz/node-sass/4.9.0/linux-x64-57_binding.node
> uglifyjs-webpack-plugin@0.4.6 postinstall /tmp/build_f0baaa8f0c58c02404819263757b80a3/node_modules/webpack/node_modules/uglifyjs-webpack-plugin
> node lib/post_install.js
> node-sass@4.9.0 postinstall /tmp/build_f0baaa8f0c58c02404819263757b80a3/node_modules/node-sass
> node scripts/build.js
Binary found at /tmp/build_f0baaa8f0c58c02404819263757b80a3/node_modules/node-sass/vendor/linux-x64-57/binding.node
Testing binary
Binary is fine
> material-dashboard-angular@2.1.0 postinstall /tmp/build_f0baaa8f0c58c02404819263757b80a3
> ng build --aot -prod
WARNING: The `text-hide()` mixin has been deprecated as of v4.1.0. It will be removed entirely in v5.
on line 10 of node_modules/bootstrap/scss/mixins/_text-hide.scss, in mixin `text-hide`
from line 57 of node_modules/bootstrap/scss/utilities/_text.scss
from line 14 of node_modules/bootstrap/scss/_utilities.scss
from line 41 of node_modules/bootstrap/scss/bootstrap.scss
from line 23 of stdin
WARNING: The `text-hide()` mixin has been deprecated as of v4.1.0. It will be removed entirely in v5.
on line 10 of node_modules/bootstrap/scss/mixins/_text-hide.scss, in mixin `text-hide`
from line 57 of node_modules/bootstrap/scss/utilities/_text.scss
from line 14 of node_modules/bootstrap/scss/_utilities.scss
from line 41 of node_modules/bootstrap/scss/bootstrap.scss
from line 23 of stdin
Date: 2018-06-27T15:06:54.717Z
Hash: 2393a0a1d7e8091fc58c
Time: 90313ms
chunk {scripts} scripts.bf77fbc5206d26f5a35f.bundle.js (scripts) 301 kB [initial] [rendered]
chunk {0} 0.36c6b58f766b0924dc1c.chunk.js () 333 kB [rendered]
chunk {1} polyfills.362b2214d7ccf243bad0.bundle.js (polyfills) 143 kB [initial] [rendered]
chunk {2} main.5c1b45ae37a5b16b8a15.bundle.js (main) 591 kB [initial] [rendered]
chunk {3} styles.3b9e2bfcfac9aa2b1a7d.bundle.css (styles) 590 kB [initial] [rendered]
chunk {4} inline.472f77d05ed9fb949d3b.bundle.js (inline) 1.4 kB [entry] [rendered]
added 1338 packages in 493.604s
-----> Caching build
Clearing previous node cache
Saving 2 cacheDirectories (default):
- node_modules
- bower_components (nothing to cache)
-----> Pruning devDependencies
Skipping because npm 5.6.0 sometimes fails when running 'npm prune' due to a known issue
https://github.com/npm/npm/issues/19356
You can silence this warning by updating to at least npm 5.7.1 in your package.json
https://devcenter.heroku.com/articles/nodejs-support#specifying-an-npm-version
-----> Build succeeded!
-----> Discovering process types
Procfile declares types -> (none)
Default types for buildpack -> web
-----> Compressing...
Done: 106M
-----> Launching...
Released v3
https://xxxxxxx.herokuapp.com/ deployed to Heroku
以上是我的构建日志,但没有看到任何错误。但是我的应用程序仍然给我这个错误:
应用程序错误应用程序和页面中发生错误 无法送达。如果您是应用程序所有者,请检查您的日志 有关详细信息。
我正在使用:
Nodejs
Buildpack
Angular版本5
节点8.10.0
npm 5.6.0