流星应用程序中Future.js出错

时间:2015-05-21 20:19:17

标签: javascript meteor

首先发布在这里。

我正在阅读David Turnbull的书“你的第一个流星应用程序”,该应用程序在我运行命令后开始崩溃

meteor add accounts-password

运行此命令后,我收到一条错误消息,提示在future.js的第245行抛出异常。我使用remove删除了帐户密码,但仍然收到此消息。

/Users/kishanpatel/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/fibers/future.js:245
                    throw(ex);
                          ^
Error: EACCES, rename     '/Users/kishanpatel/Meteor/leaderboard/.meteor/local/build'
at Object.Future.wait (/Users/kishanpatel/.meteor/packages/meteor-  tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/fibers/future.js:398:15)
at Object.wrapper [as rename] (/Users/kishanpatel/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/files.js:1350:24)
at Object.files.renameDirAlmostAtomically (/Users/kishanpatel/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/files.js:810:11)
at [object Object]._.extend.complete (/Users/kishanpatel/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/builder.js:482:11)
at /Users/kishanpatel/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/bundler.js:1933:13
at /Users/kishanpatel/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/bundler.js:2147:20
at /Users/kishanpatel/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/buildmessage.js:264:13
at [object Object]._.extend.withValue (/Users/kishanpatel/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/fiber-helpers.js:115:14)
at /Users/kishanpatel/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/buildmessage.js:257:29
at [object Object]._.extend.withValue (/Users/kishanpatel/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/fiber-helpers.js:115:14)
at /Users/kishanpatel/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/buildmessage.js:255:18
at [object Object]._.extend.withValue (/Users/kishanpatel/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/fiber-helpers.js:115:14)
at /Users/kishanpatel/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/buildmessage.js:246:23
at [object Object]._.extend.withValue (/Users/kishanpatel/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/fiber-helpers.js:115:14)
at Object.capture (/Users/kishanpatel/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/buildmessage.js:245:19)
at Object.exports.bundle (/Users/kishanpatel/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/bundler.js:2040:31)
at /Users/kishanpatel/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/run-app.js:554:24
at time (/Users/kishanpatel/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/profile.js:231:28)
at Function.run (/Users/kishanpatel/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/profile.js:377:12)
at bundleApp (/Users/kishanpatel/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/run-app.js:544:34)
at [object Object]._.extend._runOnce (/Users/kishanpatel/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/run-app.js:591:35)
at [object Object]._.extend._fiber (/Users/kishanpatel/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/run-app.js:821:28)
at /Users/kishanpatel/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/run-app.js:402:12
- - - - -

对于我的这个问题的任何帮助将不胜感激!

谢谢!

1 个答案:

答案 0 :(得分:9)

您的构建文件夹似乎不满意。

我会停止你的应用程序,然后只删除记录错误第一行中提到的构建文件夹

/Users/kishanpatel/Meteor/leaderboard/.meteor/local/build

然后重新启动流星。

它只会重新创建构建文件夹,可能没有您现在遇到的问题。