Meteor - Error: can't get arch with uname -p? - meteor

When I cd into the folder of a newly created Meteor app and run it with the 'meteor' command, I get
/Users/stylinchas/.meteor/packages/meteor-tool/.1.7.0_5.19pr45f.7esr++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/meteor-promise/promise_server.js:218
throw error;
^
Error: can't get arch with uname -p?
at run (/tools/utils/archinfo.js:151:15)
at Object.host (/tools/utils/archinfo.js:161:11)
at ProjectContext.reset (/tools/project-context.js:90:45)
at new ProjectContext (/tools/project-context.js:56:8)
at Command.doRunCommand [as func] (/tools/cli/commands.js:335:24)
at /tools/cli/main.js:1531:15
IF you have any ideas on why this is happening, I would appreciate your help - thx!

Related

Error: EACCES: permission denied, mkdir '/foldername'

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

Patch update to Meteor 1.4.1.2 fail to find program.json

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

Meteor 1.2.0.2 - Couldn't run tasklist.exe on Windows 10

I just recently downloaded meteor and started the first tutorial where it has you make a todo list. When it came to running my code, command prompt popped up with this error:
Microsoft Windows [Version 10.0.10240]
(c) 2015 Microsoft Corporation. All rights reserved.
C:\Users\Rhys>cd ./desktop/simple-todos
C:\Users\Rhys\Desktop\simple-todos>meteor
[[[[[ C:\Users\Rhys\Desktop\simple-todos ]]]]]
=> Started proxy.
C:\Users\Rhys\AppData\Local\.meteor\packages\meteor-tool\1.1.9\mt-os.windows.x86
_32\dev_bundle\lib\node_modules\fibers\future.js:278
throw(ex);
^
Error: Couldn't run tasklist.exe: tasklist wasn't found on your system, it usual
ly can be found at C:\Windows\System32\.
at Object.Future.wait (C:\Users\Rhys\AppData\Local\.meteor\packages\meteor-t
ool\1.1.9\mt-os.windows.x86_32\dev_bundle\lib\node_modules\fibers\future.js:398:
15)
at findMongoPids (C:\tools\runners\run-mongo.js:134:16)
at findMongoAndKillItDead (C:\tools\runners\run-mongo.js:279:14)
at launchOneMongoAndWaitForReadyForInitiate (C:\tools\runners\run-mongo.js:4
00:7)
at launchMongo (C:\tools\runners\run-mongo.js:656:7)
at [object Object]._.extend._startOrRestart (C:\tools\runners\run-mongo.js:7
56:19)
at [object Object]._.extend.start (C:\tools\runners\run-mongo.js:714:10)
at C:\tools\runners\run-all.js:168:26
- - - - -
at C:\tools\runners\run-mongo.js:84:24
at exithandler (child_process.js:654:7)
at ChildProcess.errorhandler (child_process.js:670:5)
at ChildProcess.emit (events.js:95:17)
at Process.ChildProcess._handle.onexit (child_process.js:818:12)
C:\Users\Rhys\Desktop\simple-todos>
I went into the location C:\Windows\System32, and tasklist.exe was indeed there.
I tried a bunch of things that were online, but couldn't really find a clear answer. I also tried reinstalling the program, but that also didn't work.
Would appreciate it a bunch if you could help me.
Thank you.
Make sure your system32 folder is stored in your environment variables under path. This env variable tells Windows and subsequent command line arguments that if the command (.exe .bat. cmd) does not exist in the working directory, to check the directories in the path variable to see if they exist there. This is how command line commands such as ipconfig work from any directory.

Meteor 0.9.0 Error: EACCES, permission denied '/Users/Jasper/.meteorsession'

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

Couldn't get laika to work on meteor

I'm using meteor 0.6.4, node 0.10.12 and laika 0.2.8. I followed the instructions on the getting started page and I get this error:
injecting laika...
loading phantomjs...
cleaning up injected code
/Users/camilo/.nvm/v0.10.12/lib/node_modules/laika/lib/app.js:124
if(err) throw err;
^
Error: spawn ENOENT
at errnoException (child_process.js:980:11)
at Process.ChildProcess._handle.onexit (child_process.js:771:34)
I switched to laika 0.2.4 based on this question Fail to run laika framework for meteor and get the same error.
Edit
I'm using phantomjs 1.9.1 installed with homebrew
Edit 2
I updated laika to 0.2.13 and tried with mrt (I was using meteor) but now the problem is different. With laika -D I get this:
[laika log] accepting the following extensions: (js)
injecting laika...
loading phantomjs...
[app touch log]
[app touch log] Stand back while Meteorite does its thing
[app touch log]
[app touch log] Done installing smart packages
[app touch log] Ok, everything's ready. Here comes Meteor!
[app touch log] [[[[[ ~/Documents/Pruebas/Meteor/test ]]]]]
[app touch log] => Meteor server running on: http://localhost:25969/
After a while, this error appear:
phantom stderr:
phantom stderr: child_process.js:927
throw errnoException(process._errno, 'spawn');
^
Error: spawn EAGAIN
at errnoException (child_process.js:980:11)
at ChildProcess.spawn (child_process.js:927:11)
at exports.spawn (child_process.js:715:9)
at Object.<anonymous> (/Users/camilo/.nvm/v0.10.12/lib/node_modules/phantomjs/bin/phantomjs:12:10)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
phantom crash: code 8
I uninstalled phantomjs, put the phantomjs binary on the same project folder and tested again but get the same error.
After many attempts, apparently the problem was with phantomjs. Installing it with homebrew or putting the binary directly on the project doesn't work for me. After update laika to 0.2.14 and install phantomjs with sudo npm install -g phantomjs it worked.
This is not a phantomjs basic issue. But a issue with nodejs version used by laika.
Please update laika to 0.2.13 and run laika -D which gives some verbose logs. lets talk about after that.
Normally, if your project runs with meteor (not mrt), laika uses binary located at following location.
~/.meteor/tools/latest/bin/node

Resources