首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用meteor build on tutorial时出现非法错误

使用meteor build on tutorial时出现非法错误
EN

Stack Overflow用户
提问于 2015-08-17 21:32:22
回答 1查看 118关注 0票数 0

我正在学习creating a Meteor app的教程,并希望将其本地部署到运行MacOS10.8.5的机器上。构建失败,因为在某些node_modules提供的一些测试和示例文件中发现了错误。下面是输出:

代码语言:javascript
复制
$ 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服务器,但现在我更喜欢在本地测试。

一种解决方案是删除不需要的测试和示例文件,但这些文件似乎是在构建过程中自动下载的。

你能推荐些什么?

EN

回答 1

Stack Overflow用户

发布于 2015-08-17 21:45:09

使用.build (或任何隐藏的内容)作为构建目录,或者将其移到项目目录树之外。这可以通过为--directory选项提供正确的值来完成。否则meteor会将构建本身放入包中,这会导致无限递归。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/32051776

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档