Meteor add-platform android started giving error


#1

Suddenly meteor add-platform android started giving error. It was working fine. Can someone explain the reason for error:

/home/torayeff/.meteor/packages/meteor-tool/.1.0.44.19mo8jx++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/dev_bundle/lib/node_modules/fibers/future.js:245
                        throw(ex);
                              ^
Error: Error running /home/torayeff/.meteor/packages/meteor-tool/.1.0.44.19mo8jx++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/tools/cordova-scripts/cordova.sh
Error: EACCES, open '/home/torayeff/.meteor/android_bundle/.cordova/lib/npm_cache/cordova-android/3.6.4/package/.npmignore'


    at execFileSyncOrThrow (/home/torayeff/.meteor/packages/meteor-tool/.1.0.44.19mo8jx++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/tools/commands-cordova.js:272:11)
    at /home/torayeff/.meteor/packages/meteor-tool/.1.0.44.19mo8jx++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/tools/commands-cordova.js:428:7
    at Array.forEach (native)
    at Function._.each._.forEach (/home/torayeff/.meteor/packages/meteor-tool/.1.0.44.19mo8jx++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/dev_bundle/lib/node_modules/underscore/underscore.js:79:11)
    at ensureCordovaPlatforms (/home/torayeff/.meteor/packages/meteor-tool/.1.0.44.19mo8jx++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/tools/commands-cordova.js:422:5)
    at /home/torayeff/.meteor/packages/meteor-tool/.1.0.44.19mo8jx++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/tools/commands-cordova.js:3020:5
    at /home/torayeff/.meteor/packages/meteor-tool/.1.0.44.19mo8jx++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/tools/buildmessage.js:327:18
    at [object Object]._.extend.withValue (/home/torayeff/.meteor/packages/meteor-tool/.1.0.44.19mo8jx++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/tools/fiber-helpers.js:115:14)
    at /home/torayeff/.meteor/packages/meteor-tool/.1.0.44.19mo8jx++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/tools/buildmessage.js:326:36
    at [object Object]._.extend.withValue (/home/torayeff/.meteor/packages/meteor-tool/.1.0.44.19mo8jx++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/tools/fiber-helpers.js:115:14)
    at Object.enterJob (/home/torayeff/.meteor/packages/meteor-tool/.1.0.44.19mo8jx++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/tools/buildmessage.js:317:26)
    at Command.main.registerCommand.name [as func] (/home/torayeff/.meteor/packages/meteor-tool/.1.0.44.19mo8jx++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/tools/commands-cordova.js:3015:16)
    at /home/torayeff/.meteor/packages/meteor-tool/.1.0.44.19mo8jx++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/tools/main.js:1345:23

#2

I was able to solve my problem by deleting: .meteor/android_bundle/.cordova/lib/npm_cache. I guess the problem was accessing this folder.