While trying to deploy my meteor app using:
meteor build /foldername --mobile-settings settings.json --server=https://appname.herokuapp.com/
I get this error:
/Users/username/.meteor/packages/less/.2.7.9.1rcbr4q++os+web.browser+web.cordova/plugin.compileLessBatch.os/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:190
throw error;
^
Error: EACCES: permission denied, mkdir '/foldername'
at Error (native)
at Object.fs.mkdirSync (fs.js:794:18)
at Object.wrapper [as mkdir] (/tools/fs/files.js:1586:35)
at Object.files.mkdir_p (/tools/fs/files.js:445:11)
at buildCommand (/tools/cli/commands.js:977:11)
at Command.func (/tools/cli/commands.js:831:12)
at /tools/cli/main.js:1483:23
How do I fix it?
it's a permission issue. you have to be a super user before run your code. or else
sudo meteor build /foldername --mobile-settings settings.json
--server=https://appname.herokuapp.com/
use the above code in your terminal.
mobile-settings and server aren't described in the doc.
You are trying to create a bundle in / wihout root rights.
Try meteor build ../foldername
Related
The command to update Meteor meteor update --patch gave the error:
$meteor update --patch
/Users/empl1/.meteor/packages/meteor-tool/.1.4.1_2.5y3whq++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/isopackets/ddp/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:165
throw error;
^
Error: ENOENT: no such file or directory, open '/private/var/folders/8y/63l591316sz2mxwr1kq551bm0000gp/T/mt-hqj7n0/plugin.compileLessBatch.os/program.json'
at Error (native)
Any idea what can fix this? Thanks
I followed the instructions here on how to install a generator for ASP.Net applications using yeoman. But when I run yo aspnet and try to generate a Web Application, I get the following error:
Error: EACCES: permission denied, mkdir '/path/to/project/ProjectName'
at Error (native)
at Object.fs.mkdirSync (fs.js:799:18)
at Function.sync (/usr/local/lib/node_modules/generator-aspnet/node_modules/yeoman-generator/node_modules/mkdirp/index.js:71:13)
at write (/usr/local/lib/node_modules/generator-aspnet/node_modules/yeoman-generator/node_modules/mem-fs-editor/actions/commit.js:13:12)
at DestroyableTransform._transform (/usr/local/lib/node_modules/generator-aspnet/node_modules/yeoman-generator/node_modules/mem-fs-editor/actions/commit.js:42:7)
at DestroyableTransform.Transform._read (/usr/local/lib/node_modules/generator-aspnet/node_modules/yeoman-generator/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:184:10)
at DestroyableTransform.Transform._write (/usr/local/lib/node_modules/generator-aspnet/node_modules/yeoman-generator/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:172:12)
at doWrite (/usr/local/lib/node_modules/generator-aspnet/node_modules/yeoman-generator/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:237:10)
at writeOrBuffer (/usr/local/lib/node_modules/generator-aspnet/node_modules/yeoman-generator/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:227:5)
at DestroyableTransform.Writable.write (/usr/local/lib/node_modules/generator-aspnet/node_modules/yeoman-generator/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:194:11)
Apparently I didn't have write access to the folder I was trying to generate the app in, despite owning it. A simple chmod fixed it.
I want to run the meteor application from some IDE so that I can debug the server side code.
For now I have setup the meteor application on the Webstorm. When I try to run the application I get following error message . Really appreciate your help.
/Users/jackal/.meteor/packages/meteor-tool/.1.0.35.mewx50++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/lib/node_modules/fibers/future.js:173
throw(ex);
^ Error: EACCES, permission denied '/Users/jackal/rschtml5/ageroRSCHTML/.meteor/local/build'
at Object.fs.renameSync (fs.js:548:18)
at Object.files.renameDirAlmostAtomically (/Users/jackal/.meteor/packages/meteor-tool/.1.0.35.mewx50++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/files.js:644:8)
at _.extend.complete (/Users/jackal/.meteor/packages/meteor-tool/.1.0.35.mewx50++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/builder.js:485:11)
at writeSiteArchive (/Users/jackal/.meteor/packages/meteor-tool/.1.0.35.mewx50++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/bundler.js:1836:13)
at /Users/jackal/.meteor/packages/meteor-tool/.1.0.35.mewx50++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/bundler.js:2206:20
at /Users/jackal/.meteor/packages/meteor-tool/.1.0.35.mewx50++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:250:13
at _.extend.withValue (/Users/jackal/.meteor/packages/meteor-tool/.1.0.35.mewx50++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/fiber-helpers.js:112:14)
at /Users/jackal/.meteor/packages/meteor-tool/.1.0.35.mewx50++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:243:29
at _.extend.withValue (/Users/jackal/.meteor/packages/meteor-tool/.1.0.35.mewx50++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/fiber-helpers.js:112:14)
at /Users/jackal/.meteor/packages/meteor-tool/.1.0.35.mewx50++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:241:18
at _.extend.withValue (/Users/jackal/.meteor/packages/meteor-tool/.1.0.35.mewx50++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/fiber-helpers.js:112:14)
at /Users/jackal/.meteor/packages/meteor-tool/.1.0.35.mewx50++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:232:23
at _.extend.withValue (/Users/jackal/.meteor/packages/meteor-tool/.1.0.35.mewx50++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/fiber-helpers.js:112:14)
at Object.capture (/Users/jackal/.meteor/packages/meteor-tool/.1.0.35.mewx50++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:231:19)
at Object.exports.bundle (/Users/jackal/.meteor/packages/meteor-tool/.1.0.35.mewx50++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/bundler.js:1926:31)
at bundleApp (/Users/jackal/.meteor/packages/meteor-tool/.1.0.35.mewx50++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/run-app.js:509:28)
at _.extend._runOnce (/Users/jackal/.meteor/packages/meteor-tool/.1.0.35.mewx50++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/run-app.js:527:24)
at _.extend._fiber (/Users/jackal/.meteor/packages/meteor-tool/.1.0.35.mewx50++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/run-app.js:744:28)
at /Users/jackal/.meteor/packages/meteor-tool/.1.0.35.mewx50++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/run-app.js:380:12
I'm not sure about my answer for your specific scenario: I had a similar problem and the cause was the npm permissions, I had to run meteor as root: sudo meteor
I see in your paste: Error: EACCES, permission denied '/Users/jackal/rschtml5/ageroRSCHTML/.meteor/local/build' at Object.fs.renameSync
Some permission is wrong. I usually use the terminal in WebStorm, not the built-in build and run. Probably you haven't noticed because you're root. Try to create a new user and run meteor create testProject. I had this issue on my Meteor install.
Edit:
Check if any of these links solves your problems:
https://github.com/oortcloud/meteorite/blob/master/README.md#permission-woes
https://github.com/meteor/meteor/issues/893
After updating to meteor 0.9.0 I get the following error when launching an app to localhost
Error: EACCES, permission denied '/Users/Jasper/.meteorsession'
at Object.fs.openSync (fs.js:432:18)
at Object.fs.readFileSync (fs.js:289:15)
at readSessionData (/Users/Jasper/.meteor/packages/meteor-tool/.1.0.26.1fmrgj1++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/auth.js:137:24)
at Object.tryRevokeOldTokens (/Users/Jasper/.meteor/packages/meteor-tool/.1.0.26.1fmrgj1++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/auth.js:331:10)
at main.registerCommand.name [as func] (/Users/Jasper/.meteor/packages/meteor-tool/.1.0.26.1fmrgj1++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/commands.js:197:8)
at /Users/Jasper/.meteor/packages/meteor-tool/.1.0.26.1fmrgj1++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/main.js:1212:23
Starting the meteor session with sudo meteor fixes this problem but I was wondering what causes this and how it can be fixed.
Thanks in advance
Just delete the .meteorsession and restart meteor and it will create a new .meteorsession directory.
Run the following code in your terminal:
rm -rf /Users/Jasper/.meteorsession
I am getting the following error when i try to update doctrine with composer
[RuntimeException]
Failed to clone https://github.com/doctrine/dbal.git via git, https protocols, aborting.
- git://github.com/doctrine/dbal.git
error: could not lock config file .git/config: Permission denied
error: cannot open .git/FETCH_HEAD: Permission denied
- https://github.com/doctrine/dbal.git
error: could not lock config file .git/config: Permission denied
error: cannot open .git/FETCH_HEAD: Permission denied
I am using this line for doctrine in my composer.json
"doctrine/doctrine-bundle": "1.2.*#dev",
Please check that the doctrine folder within vendor has correct permissions. For me removing the doctrine folder and running update again fixed the problem.
$ sudo rm -rf vendor/doctrine ; ./composer update