2013-05-09 112 views
2

我的meteor.js應用程序崩潰。我收到以下錯誤。看來這個錯誤不在我的應用程序代碼中。我很感激,如果有人可以看看下面的消息,讓我知道我可以擺脫這個錯誤。瞭解來自Meteor.js的錯誤消息:錯誤:EACCES,權限被拒絕

錯誤消息

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

我搜索更多一些的話題,這似乎是用sudo要安裝的meteorite需要一些軟件包的一個問題。正如this Github issues page上建議的一種解決方法是刪除應用程序中的文件夾/.meteor/local/build並重新啓動meteor。

+0

是的!我以root身份首先運行流星來啓動它。那麼我創建了一個用戶。 Chown不會用於某些愚蠢的閱讀。哦,原因是因爲流星會SYMBOLIC LINK一個文件夾,chown不會伎倆。所以刪除鏈接並運行meteor,這將創建一個新的鏈接。田田!感謝OP :) – Andy 2017-02-28 03:46:23

0

嘗試

chmod +x /Users/username/Dropbox/LearnSoftware_and_Math/LearnJavascript/LearnMeteor/microscope/.meteor/local/build/app/collections/posts.js 
+0

這沒有奏效。即使這樣做,我仍然收到相同的錯誤消息。此外,這是一個由流星創建的文件...我不需要手動更改其權限。 – Curious2learn 2013-05-09 11:07:33

5

這適用於我:重新設置/.meteor/local/build的chown權限(以避免使用sudo)給您的用戶。

例如,我的用戶是「skozz」。在我的項目文件夾:

sudo chown -R skozz .meteor/local/build

然後運行mrtmeteor

如果問題仍然存在,也許你應該設定在主.npm文件夾相同的權限。在我的情況下:

chown -R skozz ~/.npm 
+0

這可能會工作,但我不得不實際刪除它 – Andy 2017-02-28 03:45:56

0

我通過徹底刪除清除卸載解決了問題!和的NodeJS NPM這個腳本「OS X」:從那以後,我安裝的NodeJS與PKG(我在OS X)下載網站的NodeJS上正確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/

和instaled,就會將所有的工作罰款meteor updatecd path/to/meteor/project ; meteor

相關問題