I'm trying to add packages using meteorite from atmosphere, but it seems unable to clone the repo. Here is my error.
mrt add momentjs
✓ momentjs
tag: https://github.com/crapthings/meteor-momentjs.git#v2.1.0
/usr/local/lib/node_modules/meteorite/lib/sources/git.js:108
throw "There was a problem cloning repo: " + self.url;
^
There was a problem cloning repo: https://github.com/crapthings/meteor-momentjs.git
Any ideas as to what might have gone wrong? git is in my PATH, and so is meteorite.
EDIT: This is running on OS X Mountain Lion
Depending on how you installed meteorite:
sudo mrt add momentjs
The WTF guide says that you might need to install meteorite with administrator rights. With my installation I also need to run mrt commands with sudo.
You can fix those issues by cleaning up the root owned files in your meteorite installation (or better: uninstall meteorite, clean up and reinstall it):
sudo mrt uninstall
sudo mrt uninstall --system
sudo chown -R `whoami` ~/.npm
sudo -H npm install -g meteorite
Don't forget the -H for setting the HOME variable to the root homedir in the last line. Afterwards you can do mrt add whatsoever without sudo again. Works for me, found here: https://github.com/oortcloud/meteorite
Related
I'm using Mac OS 10.15.2, Terminal 2.10.
I'm trying to install firebase tools to allow me to upload my experiment to firebase.
The following is what I used to do, which had been giving me success. But today, I'm using a new computer, and the installations were unsuccessful. I'm pasting the record in command line, as a screenshot, here for your reference
.
Thank you very much!
You are using the wrong package. You should be using "firebase-tools" instead of "firebase-cli". Be sure to read through the warnings and errors carefully.
Uninstall the old firebase-cli package:
sudo npm uninstall -g firebase-cli
Then install the correct firebase-tools package:
sudo npm install -g firebase-tools
Try running the command with sudo i.e use the command
sudo npm install -g firebase-tools
I am new to redis and I am installing redis cli, using the below tutorial.
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-redis
this tutorial suggests to do sudo make install after make test, but when I am doing "sudo make install", it give me the below prompt
Hint: It's a good idea to run 'make test' ;)
INSTALL install
INSTALL install
INSTALL install
INSTALL install
INSTALL install
I do not have any idea whether this will create any problem in installing the cli globally.
Any suggestions on this will be a great help.
You can alternatively copy the server and cli application by doing:
sudo cp src/redis-server /usr/local/bin/
sudo cp src/redis-cli /usr/local/bin/
as described in the Redis documentation.
When I try to install Sails.js, I get:
npm WARN deprecated grunt-lib-contrib#0.7.1: DEPRECATED. See readme: https://github.com/gruntjs/grunt-lib-contrib
npm WARN deprecated guid#0.0.12: Please use node-uuid instead. It is much better.
ws#0.4.32 install /usr/local/lib/node_modules/sails/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
(node-gyp rebuild 2> builderror.log) || (exit 0)
the console hangs right here and never does anything else.
I tried uninstalling all node_modules and reinstalling an earlier version:
sudo rm -rf node_modules
npm cache clear
sudo npm install npm#1.4.23 -g
sudo npm install sails -g
Still the exact same problem. Anyone else run into this and have a solution?
I had a similar problem. A better solution is to use:
npm -g install npm
This will install the latest npm version
A way of handling this, as I've seen it, is by installing the latest version of NPM:
npm install -g npm#1.4.24
And you may have to remove the Grunt Cli first done like so:
npm -g remove grunt-cli
The guys running Sails have also addressed this issue on GitHub: https://github.com/balderdashy/sails/issues/2124
I was using Mac OSX 10.7.5
I simply updated to 10.9.5 and followed the normal installation procedures, everything worked fine.
If you use apt-get or any other to install npm fist, then you must remove it with apt-get then use the sudo npm install -g npm#1.4.24 to install the 1.4 version
I just upgraded Meteor to 0.9.0 and I got an error when running "mrt migrate-app".
Have I done something wrong?
-- Notice --
0.9.0: Welcome to the new Meteor package system! You can now add any Meteor
package to your app (from more than 1800 packages available on the
Meteor Package Server) just by typing 'meteor add <packagename>', no
Meteorite required.
It looks like you have been using Meteorite with this project. To
migrate your project automatically to the new system:
(1) upgrade your Meteorite with 'npm install -g meteorite', then
(2) run 'mrt migrate-app' inside the project.
Having done this, you no longer need 'mrt' and can just use 'meteor'.
All your package dependencies are already up to date.
me#ubuntu:~/myApp$ mrt migrate-app
/usr/local/lib/node_modules/meteorite/bin/mrt.js:21
throw("Subcommand " + subCommandName + " does not exist!");
First of all I did this (and it seemed to work):
me#ubuntu:/usr/local/lib/node_modules$ sudo npm install -g meteorite
First you have to update the project
meteor update
Then make sure to update meteorite
sudo npm update -g meteorite
And then run
mrt migrate-app
For more info read:
http://blog.percolatestudio.com/engineering/meteor-packaging-questions/
(Especially: How do I migrate my app from Meteorite to the Meteor Package System (0.9.0) ?)
https://hackpad.com/Migrating-Apps-UfPrM192vSQ
And personal favorite: https://www.discovermeteor.com/blog/updating-to-090/
I'm on osx and my mrt --version was 0.7.1 so I did a
macport selfupdate
then a
sudo port update npm
and a rehash to refresh the mrt executable (symlink to a js-file (I'm using zsh). Thank you to Matyas.
Then I did the
sudo npm update -g meteorite
mrt migrate-app
again but had a 'npm ERR! Please try running this command again as root/Administrator' which was solved with a
chown -R myUsername:staff .npm
regards
Claus
I solved it with
sudo mrt migrate-app
I don't know the possible consequences of this, use at your own risk!
I just upgraded to Meteor 0.8.0 and now installing packages with meteorite fails. I tried a lot, including uninstalling and reinstalling Meteor and Meteorite from scratch. I am running meteor on a Mac with 10.9.2.
I just create a fresh app
mrt create myapp
cd myapp
and add some random atmosphere package
myapp add aws-sdk
and I get this error, no matter which package I try to install:
smart.json changed.. installing from smart.json
✓ aws-sdk
tag: https://github.com/peerlibrary/meteor-aws-sdk.git#v1.5.1.1
/usr/local/lib/node_modules/meteorite/lib/dependencies/package.js:106
throw('Could not locate package.js within path ' + self.source.packagePa
^
Could not locate package.js within path /Users/Me/.meteorite/packages/aws-sdk/peerlibrary/meteor-aws-sdk/63efa4ebbe9986bd875f69d5fdf3248c5c44159e
my-mac-pro:myapp Me$
After that, the following line for removing the failing package produces exactly the same error:
mrt remove aws-sdk
Thank you very much for any hint!
Ah. Forgot I already knew the answer to the problem, just did not recognize the problem. This error seems to be a rephrased version of the error "unable to clone repo xyz" in the old version and comes from inappropriate permissions. The answer is reinstalling only meteorite and fixing the permissions:
sudo mrt uninstall
sudo mrt uninstall --system
sudo chown -R `whoami` ~/.npm
sudo -H npm install -g meteorite
Hope that helps anybody, if not i'll probably just delete the question sooner or later!