我正在学习creating a Meteor app的教程,并希望将其本地部署到运行MacOS10.8.5的机器上。构建失败,因为在某些node_modules提供的一些测试和示例文件中发现了错误。下面是输出:
$ meteor build osx --architecture os.osx.x86_64 --directory
WARNING: The output directory is under your source tree.
Errors prevented bundling:
While building the application:
build/bundle/programs/server/npm/webapp/node_modules/connect/node_modules/multiparty/examples/azureblobstorage.js:38:2:
Unexpected token )
build/bundle/programs/server/npm/webapp/node_modules/useragent/node_modules/lru-cache/test/memory-leak.js:1:15:
Unexpected token ILLEGAL
build/bundle/programs/server/npm/logging/node_modules/cli-color/test/__playground/throbber.formatted.js:1:15:
Unexpected token ILLEGAL
build/bundle/programs/server/npm/logging/node_modules/cli-color/test/__playground/throbber.js:1:15:
Unexpected token ILLEGAL
build/bundle/programs/server/npm/webapp/node_modules/useragent/bin/testfiles.js:1:15:
Unexpected token ILLEGAL
build/bundle/programs/server/npm/webapp/node_modules/useragent/bin/update.js:1:15:
Unexpected token ILLEGAL
build/bundle/programs/web.browser/head.html:1: bad formatting in HTML template我知道我可以部署到Meteor自己的服务器上,但我的目的是发现如何将一个项目部署到我自己的服务器上,这样我就可以判断这个过程会有多顺利。最后,我想使用RedHat服务器,但现在我更喜欢在本地测试。
一种解决方案是删除不需要的测试和示例文件,但这些文件似乎是在构建过程中自动下载的。
你能推荐些什么?
发布于 2015-08-17 21:45:09
使用.build (或任何隐藏的内容)作为构建目录,或者将其移到项目目录树之外。这可以通过为--directory选项提供正确的值来完成。否则meteor会将构建本身放入包中,这会导致无限递归。
https://stackoverflow.com/questions/32051776
复制相似问题