【发布时间】:2016-08-16 21:17:45
【问题描述】:
我正在尝试按照此处的指南进行操作:
https://guide.meteor.com/using-packages.html
安装一些节点包,然后尝试将它们导入我的methods.js 文件,但出现以下错误:
W20160423-15:08:57.338(9)? (STDERR) app/server/methods.js:1
W20160423-15:08:57.338(9)? (STDERR) (function(Npm,Assets){(function(){import Fibers from 'fibers';
W20160423-15:08:57.338(9)? (STDERR) ^^^^^^
W20160423-15:08:57.343(9)? (STDERR) SyntaxError: Unexpected reserved word
W20160423-15:08:57.344(9)? (STDERR) at /repos/myproject/.meteor/local/build/programs/server/boot.js:278:30
W20160423-15:08:57.344(9)? (STDERR) at Array.forEach (native)
W20160423-15:08:57.344(9)? (STDERR) at Function._.each._.forEach (/Volumes/320gb/macbookpro/.meteor/packages/meteor-tool/.1.3.2_4.1rz3z4t++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20160423-15:08:57.345(9)? (STDERR) at /repos/myproject/.meteor/local/build/programs/server/boot.js:133:5
我的包似乎安装正确。不知道是什么原因造成的,这是一个错误吗?
【问题讨论】: