嗨,我是初学者,尝试在Heroku上部署应用程序。我之前已经成功部署了应用程序,但是由于某种原因这次没有任何效果。我已完全按照此博客中的步骤进行操作:https : //medium.com/@hellotunmbi/how-to-deploy-angular-application-to-heroku-1d56e09c5147
我使用的是angular和node的最新版本:
“ @ angular / cli”:“ ^ 6.0.1”,“ @ angular / compiler-cli”:“ ^ 6.0.1”,“ node”:“ 10.1.0” ,“ npm”:“ 6.0.0”
以下是我的构建日志和package.json文件,以供参考。没有错误,但应用程序在部署后不起作用:(请帮助!!
-----> 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): 10.1.0
engines.npm (package.json): 6.0.0
Resolving node version 10.1.0...
Downloading and installing node 10.1.0...
Bootstrapping npm 6.0.0 (replacing 5.6.0)...
npm 6.0.0 installed
-----> Restoring cache
Loading 2 from cacheDirectories (default):
- node_modules
- bower_components (not cached - skipping)
-----> Building …Run Code Online (Sandbox Code Playgroud)