【发布时间】:2016-01-02 19:00:54
【问题描述】:
我正在尝试在 digitalocean 上的 dokku 上设置一个新的 clean phoenix 框架项目 (v 1.1.1)。
我首先收到此错误消息:
=====> phoenix container output:
npm ERR! Linux 3.13.0-71-generic
npm ERR! argv "/app/.heroku/node/bin/node" "/app/.heroku/node/bin/npm" "start"
npm ERR! node v5.1.1
npm ERR! npm v3.3.12
npm ERR! missing script: start
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /app/npm-debug.log
=====> end phoenix container output
但后来我发现/谷歌发现我需要将 "scripts": { "start": 添加到 package.json
像这样:
{
"repository": {
},
"dependencies": {
"babel-brunch": "^6.0.0",
"brunch": "^2.0.0",
"clean-css-brunch": ">= 1.0 < 1.8",
"css-brunch": ">= 1.0 < 1.8",
"javascript-brunch": ">= 1.0 < 1.8",
"uglify-js-brunch": ">= 1.0 < 1.8"
},
"scripts": {
"start": "node server.js"
}
}
但我不明白我应该将节点指向的位置/指向哪个文件?其他人有同样的错误信息吗?
【问题讨论】:
-
错误。正在发生,因为我使用了错误的 buildpack。在此处查看更多信息:gist.github.com/henrik/c70e32544e09c1a79841
标签: npm phoenix-framework dokku