Webpack应用程序无法在Google Cloud和Cloud Foundry上正确部署

时间:2017-08-15 20:46:05

标签: webpack google-cloud-platform cloudfoundry

我有一个简单的Vue客户端,使用Vue CLI构建Webpack。它在我的本地Linux机器上运行良好。在我将其部署到Google Cloud之后,它还没有运行。当我点击应用Url时,以下是日志消息。

domain=.example.org

安装模块'粉笔'后,我仍然收到错误。我今天刚刚安装了最新的node.js和npm。

我尝试将应用程序部署到Cloud Foundry,但没有运气。

2017-08-15 19:44:09 default[20170815t122042]
2017-08-15 19:50:15 default[20170815t122042]      throw err;
2017-08-15 19:50:15 default[20170815t122042]      ^
2017-08-15 19:50:15 default[20170815t122042]
2017-08-15 19:50:15 default[20170815t122042]  Error: Cannot find  module 'chalk'      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> (/app/build/check-versions.js:1:75)      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)
2017-08-15 19:50:15 default[20170815t122042]
2017-08-15 19:50:15 default[20170815t122042]  npm ERR! Linux 3.16.0-4-amd64
2017-08-15 19:50:15 default[20170815t122042]  npm ERR! argv "/nodejs/bin/node" "/nodejs/bin/npm" "start"
2017-08-15 19:50:15 default[20170815t122042]  npm ERR! node v6.11.2
2017-08-15 19:50:15 default[20170815t122042]  npm ERR! npm  v3.10.10
2017-08-15 19:50:15 default[20170815t122042]  npm ERR! code ELIFECYCLE
2017-08-15 19:50:15 default[20170815t122042]  npm ERR! supplier-vue@1.0.0 start: `node build/dev-server.js`
2017-08-15 19:50:15 default[20170815t122042]  npm ERR! Exit status 1
2017-08-15 19:50:15 default[20170815t122042]  npm ERR!
2017-08-15 19:50:15 default[20170815t122042]  npm ERR! Failed at the supplier-vue@1.0.0 start script 'node build/dev-server.js'.
2017-08-15 19:50:15 default[20170815t122042]  npm ERR! Tell the author that this fails on your system:
2017-08-15 19:50:15 default[20170815t122042]  npm ERR!     node build/dev-server.js
2017-08-15 19:50:15 default[20170815t122042]  npm ERR! You can get information on how to open an issue for this project with:
2017-08-15 19:50:15 default[20170815t122042]  npm ERR!     npm bugs supplier-vue
2017-08-15 19:50:15 default[20170815t122042]  npm ERR! Or if that isn't available, you can get their info via:
2017-08-15 19:50:15 default[20170815t122042]  npm ERR! There is likely additional logging output above.
2017-08-15 19:50:15 default[20170815t122042]
2017-08-15 19:50:15 default[20170815t122042]  npm ERR!     /app/npm-debug.log
2017-08-15 19:50:15 default[20170815t122042]
2017-08-15 19:50:15 default[20170815t122042]  > supplier-vue@1.0.0 start /app
2017-08-15 19:50:15 default[20170815t122042]  > node build/dev-server.js

有趣!以上两组错误消息不同。经过一些在线搜索后,我还没有看到任何需要能够在云端部署的特殊信息。如何解决这个问题?

0 个答案:

没有答案