reactioncommerce / reaction-cli

A command line tool for working with Reaction Commerce.
33 stars 20 forks source link

reaction-cli install on linux installing only for root #37

Closed rof20004 closed 7 years ago

rof20004 commented 7 years ago

In my O.S Debian Stretch 9 64 bits, when I run;

npm install -g reaction-cli

this install only for root, not for all users.

I tried too:

yarn global add reaction-cli

and not working too.

jshimko commented 7 years ago

Sounds like you have permissions issues with your global node_modules.

https://docs.npmjs.com/getting-started/fixing-npm-permissions

This isn't a problem with this package, so I'm going to close this.

rof20004 commented 7 years ago

Hi, sorry for a little information, in fact, I discovered that when I install reaction-cli, I do not sure, but seems it install inside heroku: /use/local/heroku/bin/reaction

Is this right?

jshimko commented 7 years ago

No, that doesn't look right. I just installed it on a fresh instance of Debian Stretch and it installed in /usr/lib/node_modules/reaction-cli and added a symlink for the executable to /usr/bin/reaction.

Are you trying to run this on Heroku? If so, that's not how reaction-cli is intended to be used. It's a tool for local development. You don't usually run it on remote servers.

Are you just trying to start up a shop or are you actually writing custom code?

rof20004 commented 7 years ago

No, my Debian Stretch is an fresh update of Debian Jessie, I just used yarn global add reaction-cli and only worked for root, thanks for answer, I will investigate.

jshimko commented 7 years ago

If it only works for root, then my first answer is the solution. You need to change permissions of the global node_modules directory to be owned by your non-root user.

rof20004 commented 7 years ago

I will investigate, because all my other npm modules working normal, I have vue-cli, firebase, etc.