Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mean init: doesn't find 'git' #69

Open
brownman opened this issue Dec 11, 2014 · 4 comments · May be fixed by SibuStephen/mean-cli#36
Open

mean init: doesn't find 'git' #69

brownman opened this issue Dec 11, 2014 · 4 comments · May be fixed by SibuStephen/mean-cli#36

Comments

@brownman
Copy link
Contributor

root@850a7ee94c4b:~# mean-init 
? What would you name your mean app? mean
? Do you prefer grunt or gulp as a taskrunner? grunt
    Prerequisite not installed: git
root@850a7ee94c4b:~# which git
/usr/bin/git
root@850a7ee94c4b:~# echo $PATH | grep '/usr/bin'
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin
root@850a7ee94c4b:~# mean -v
0.9.8
root@850a7ee94c4b:~# 
@brownman brownman changed the title mean init: not find 'git' mean init: doesn't find 'git' Dec 11, 2014
@fyockm
Copy link
Contributor

fyockm commented Dec 11, 2014

@brownman could the problem be ownership? because you are running as root?

@sergeifedorenko
Copy link

I'm also running script as root and have similar problem ((

root@wordshome:/opt# mean init wordshome
? What would you name your mean app? wordshome
Installation of mean should not be done as root! bailing out

/usr/local/lib/node_modules/mean-cli/node_modules/inquirer/node_modules/rx/dist/rx.js:580
throw e;
^
RUNNING AS ROOT

I have remote ubuntu 14.04
@fyockm Thank you for support!

@liorkesos
Copy link
Member

Hi Sergei,
Mean was changed to explicitly avoid being running as root.
The only thig you need to install as root (With sudo) is mean-cli, gulp and
bower.
Everytime you run mean using gulp (or node server.js) you should be doing
so with normal non-root permissions.
You can run chown -R whoami ~/.npm and on your mean installation (As
root) to fix the permissions.
Good luck
Lior

On Mon, Apr 6, 2015 at 9:20 PM, Sergei Fedorenko [email protected]
wrote:

I'm also running script as root and have similar problem ((

root@wordshome:/opt# mean init wordshome
? What would you name your mean app? wordshome
Installation of mean should not be done as root! bailing out

/usr/local/lib/node_modules/mean-cli/node_modules/inquirer/node_modules/rx/dist/rx.js:580
throw e;
^
RUNNING AS ROOT

I have remote ubuntu 14.04
@fyockm https://github.com/fyockm Thank you for support!


Reply to this email directly or view it on GitHub
#69 (comment).

Lior Kesos - http://www.linnovate.net
Linnovate - Community Infrastructure Care
mail: [email protected]
office: +972 722500881
cell: +972 524305252
skype: liorkesos

@sergeifedorenko
Copy link

@liorkesos Thank you!
I created new user on server but instead "chown -R whoami ~/.npm" I simply deleted ~/.npm
"rm -rf ~/.npm"

I can run Mean.io on remote ubuntu! All OK! ))) Thank You!!

Several moments for my situation

1 - when I run mean project I got only small warning from console
image
[Error: /home/admin/wordshome-com/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/Release/bson.node: invalid ELF header]
js-bson: Failed to load c++ bson extension, using pure JS version

2 - I not found full article with installation mean.io on remote Ubuntu with advices about root user and .etc
Same article will be fine for new users

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants