我创建了meteor app然后它可以部署到meteor.com服务器。但是当我添加accounts-password包时,部署到meteor服务器失败了。在localhost上部署正常运行,没有任何错误或警告消息。
以下是我在终端中重现错误的步骤的副本。
Zaharuddins-MacBook-Pro:me zkhairuddin$ meteor create cdtest
Created a new Meteor app in 'cdtest'.
To run your new app:
cd cdtest
meteor
If you are new to Meteor, try some of the learning resources here:
https://www.meteor.com/learn
Zaharuddins-MacBook-Pro:me zkhairuddin$ cd cdtest/
Zaharuddins-MacBook-Pro:cdtest zkhairuddin$ meteor deploy cdtest.meteor.com
Deploying to cdtest.meteor.com.
Now serving at http://cdtest.meteor.com
Zaharuddins-MacBook-Pro:cdtest zkhairuddin$ meteor add accounts-password
Changes to your project's package version selections:
accounts-base added, version 1.2.1
accounts-password added, version 1.1.3
ddp-rate-limiter added, version 1.0.0
email added, version 1.0.7
localstorage added, version 1.0.5
npm-bcrypt added, version 0.7.8_2
rate-limit added, version 1.0.0
service-configuration added, version 1.0.5
sha added, version 1.0.4
srp added, version 1.0.4
accounts-password: Password support for accounts
Zaharuddins-MacBook-Pro:cdtest zkhairuddin$ meteor deploy cdtest.meteor.com
/Users/zkhairuddin/.meteor/packages/meteor-tool/.1.1.9.1oxgk2a++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/fibers/future.js:278
throw(ex);
^
Error: EACCES, mkdir '/Users/zkhairuddin/.meteor/packages/npm-bcrypt/.build212220..0.7.8_2.11e8w98++os.linux.x86_64+os.osx.x86_64+web.browser+web.cordova'
at Object.Future.wait (/Users/zkhairuddin/.meteor/packages/meteor-tool/.1.1.9.1oxgk2a++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/fibers/future.js:398:15)
at /tools/fs/files.js:1331:28
at Object.wrapper [as mkdir] (/tools/fs/files.js:1334:20)
at Object.files.mkdir_p (/tools/fs/files.js:405:11)
at new Builder (/tools/isobuild/builder.js:85:13)
at [object Object]._.extend.saveToPath (/tools/isobuild/isopack.js:1144:19)
at [object Object]._.extend._saveIsopack (/tools/packaging/tropohouse.js:366:15)
at /tools/packaging/tropohouse.js:506:...blablabla
我的流星版本是1.2.0.2。知道如何解决这个问题吗?
提前致谢
答案 0 :(得分:1)
尝试运行:
fgets
这可能会修复您的权限错误。