Bash:rasa-nlu-trainer command not found

Not able to open the editor in the browser by using rasa-nlu-trainer. Using the v10 for node and npm 6.4.1

Did you run npm with -g? And do you have correctly set up the PATH variable?

Yes, I ran npm I -g rasa-nlu-trainer earlier. Then in my data folder I ran rasa-nlu-trainer. I have set the path properly as mentioned while installing in npm and nodejs /usr/local/bin in my path

Is there any issue with Mac. Because I have seen multiple git queries many people using Mac facing same issue

npm i -g rasa-nlu-trainer command worked fine. Facing command not found issue only for rasa-nlu-trainer