Reaction Commerce install issue on Ubuntu 14.04


#1

Hello All ,
I am trying to install Reaction Commerce with this command
npm install -g reaction-cli
and then whenever i try to write reaction --help or --version or try to reaction init there is an error on terminal that
reaction: command not found

i am using Node v4.4.7
with ubuntu 14.04

after writing the command “npm install -g reaction-cli” it install properly but with no errors but does not run any of reaction commands
please tell possible solution


#2

I just did a fresh install on Ubuntu 14.04 and didn’t have any issues.

# start a fresh copy of Ubuntu and drop into a bash shell...
docker run -it ubuntu:14.04 /bin/bash

# install Node
curl -sL https://deb.nodesource.com/setup_4.x | sudo bash -
apt-get install -y nodejs

# install Reaction CLI
npm i -g reaction-cli

# test
reaction -v

# outputs...
Node: 4.6.0
NPM: 2.15.9
Reaction CLI: 0.4.20

The only thing I can think of is your npm modules aren’t in your $PATH. That should be taken care automatically, but perhaps you customized something that changed that. You can either reinstall Node or perhaps try something like this: