我有一臺運行Ubuntu 14.04的Digital Ocean服務器和一臺我部署的Mac。部署Meteor應用程序時出現錯誤(AssertionError:「undefined」===「function」)
mupx deploy
一直工作正常。現在我已經添加了2個包並更新到Meteor 1.4。我得到這個錯誤:
[139.59.242.839] - Uploading bundle
[139.59.242.839] - Uploading bundle: SUCCESS
[139.59.242.839] - Sending environment variables
[139.59.242.839] - Sending environment variables: SUCCESS
[139.59.242.839] - Initializing start script
[139.59.242.839] - Initializing start script: SUCCESS
[139.59.242.839] - Invoking deployment process
[139.59.242.839] - Invoking deployment process: SUCCESS
[139.59.242.839] - Verifying deployment
[139.59.242.839] x Verifying deployment: FAILED
-----------------------------------STDERR-----------------------------------
package.json [email protected] No description
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No README data
npm WARN cannot run in wd [email protected] node npm-rebuild.js (wd=/bundle/bundle/programs/server)
=> Starting meteor app on port:80
assert.js:93
throw new assert.AssertionError({
^
AssertionError: "undefined" === "function"
at wrapPathFunction (/bundle/bundle/programs/server/mini-files.js:77:10)
at Object.<anonymous> (/bundle/bundle/programs/server/mini-files.js:108:24)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/bundle/bundle/programs/server/boot.js:9:13)
at Module._compile (module.js:456:26)
=> Redeploying previous version of the app
因此,我已降級流星,並刪除了軟件包。然後再次升級了metor。沒什麼幫助。最糟糕的部分是,儘管它說它會重新部署以前的版本,但我的應用程序現在已經關閉。 我搜索了一下,顯然有一羣人有類似的問題,但總是有一個稍微不同的錯誤。我試着用
npm update mupx -g
和
mupx setup
遺憾的是沒有任何幫助更新的NodeJS。任何提示都非常值得歡迎:)`
我有同樣的問題,任何解決方案呢?謝謝! –