3

我的 meteor.js 应用程序崩溃了。我收到以下错误。看来该错误不在我的应用程序代码中。如果有人可以查看以下消息并让我知道如何摆脱此错误,我将不胜感激。

错误信息

Your application is crashing. Waiting for file change.
=> Modified -- restarting.
=> Errors prevented startup:
Exception while bundling application:
Error: EACCES, permission denied '/Users/username/Dropbox/LearnSoftware_and_Math/LearnJavascript/LearnMeteor/microscope/.meteor/local/build/app/collections/posts.js'
    at Object.fs.unlinkSync (fs.js:582:18)
    at Object._.extend.rm_recursive (/Users/username/.meteor/tools/275efdf2db/tools/files.js:278:10)
    at _.extend.rm_recursive (/Users/username/.meteor/tools/275efdf2db/tools/files.js:274:15)
    at Array.forEach (native)
    at Function._.each._.forEach (/Users/username/.meteor/tools/275efdf2db/lib/node_modules/underscore/underscore.js:79:11)
    at Object._.extend.rm_recursive (/Users/username/.meteor/tools/275efdf2db/tools/files.js:272:9)
    at _.extend.rm_recursive (/Users/username/.meteor/tools/275efdf2db/tools/files.js:274:15)
    at Array.forEach (native)
    at Function._.each._.forEach (/Users/username/.meteor/tools/275efdf2db/lib/node_modules/underscore/underscore.js:79:11)
    at Object._.extend.rm_recursive (/Users/username/.meteor/tools/275efdf2db/tools/files.js:272:9)
    at _.extend.rm_recursive (/Users/username/.meteor/tools/275efdf2db/tools/files.js:274:15)
    at Array.forEach (native)
    at Function._.each._.forEach (/Users/username/.meteor/tools/275efdf2db/lib/node_modules/underscore/underscore.js:79:11)
    at Object._.extend.rm_recursive (/Users/username/.meteor/tools/275efdf2db/tools/files.js:272:9)
    at _.extend.write_to_directory (/Users/username/.meteor/tools/275efdf2db/tools/bundler.js:794:11)
    at Object.exports.bundle (/Users/username/.meteor/tools/275efdf2db/tools/bundler.js:873:12)
    at /Users/username/.meteor/tools/275efdf2db/tools/run.js:694:26
    at exports.inFiber (/Users/username/.meteor/tools/275efdf2db/tools/fiber-helpers.js:24:12)
=> Your application is crashing. Waiting for file change.
4

4 回答 4

5

这对我有用:为您的用户重新设置/.meteor/local/build(以避免使用 sudo)的 chown 权限。

例如,我的用户是“skozz”。在我的项目文件夹中:

sudo chown -R skozz .meteor/local/build

然后运行mrtmeteor

如果问题仍然存在,您可能应该对主 .npm 文件夹设置相同的权限。就我而言:

chown -R skozz ~/.npm
于 2014-08-21T14:34:47.960 回答
5

sudo我在该主题上进行了更多搜索,使用安装一些需要的软件包似乎是一个问题meteorite正如此 Github 问题页面所建议的,解决此问题的一种方法是删除/.meteor/local/build应用程序中的文件夹并重新启动流星。

于 2013-05-09T11:50:45.193 回答
0

尝试

chmod +x /Users/username/Dropbox/LearnSoftware_and_Math/LearnJavascript/LearnMeteor/microscope/.meteor/local/build/app/collections/posts.js
于 2013-05-09T02:47:47.353 回答
0

我通过完全删除清除卸载解决了这个问题!nodejs 和 npm 与此脚本 'os x' :sudo rm /usr/local/bin/npm sudo rm /usr/local/share/man/man1/node.1 sudo rm /usr/local/lib/dtrace/node.d sudo rm -rf ~/.npm sudo rm -rf ~/.node-gyp sudo rm /opt/local/bin/node sudo rm /opt/local/include/node sudo rm -rf /opt/local/lib/node_modules sudo rm -rf /usr/local/include/node/

之后,我使用在nodejs网站上下载的pkg(我在os x上)正确安装了nodejs并安装了它,然后一切正常,meteor update并且cd path/to/meteor/project ; meteor

于 2016-07-26T10:28:37.350 回答