Understanding the error message from Meteor.js: Error: EACCES, permission denied

My meteor.js application is crashing. I get the following error. It seems that the error is not in my application code. I would appreciate if anyone could take a look at the following message and tell me how I could get rid of this error.

Error message

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. 
+2
source share
4 answers

I was looking for a few more questions on this topic and there seems to be a problem using sudo to install some packages that meteorite requires. As suggested on this Github page , one way to solve this problem is to delete the /.meteor/local/build folder in the application and restart the meteorite.

+4
source

This works for me: reset the permissions of chown /.meteor/local/build (to avoid using sudo) for your user.

For example, my user is "skozz". In the project folder:

sudo chown -R skozz .meteor/local/build

Then run mrt or meteor

If the problem persists, you may need to set the same permissions for the .npm main folder. In my case:

 chown -R skozz ~/.npm 
+5
source

to try

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

I solved the problem by completely removing the cleanup! nodejs and npm with this script '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/

after that I correctly installed nodejs with pkg (I'm on os x), downloaded to the nodejs website, and installed it, then everything worked fine with meteor update and cd path/to/meteor/project ; meteor cd path/to/meteor/project ; meteor

0
source

Source: https://habr.com/ru/post/974539/


All Articles