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

command not found: wscat #124

Closed
lobstaboy opened this issue Jun 10, 2020 · 4 comments
Closed

command not found: wscat #124

lobstaboy opened this issue Jun 10, 2020 · 4 comments

Comments

@lobstaboy
Copy link

I installed wscat using the -g, but when I try to run anything, such as wscat -V, it gives me the error:
command not found: wscat

@lpinca
Copy link
Member

lpinca commented Jun 11, 2020

This is not a wscat issue, it is very likely that any other CLI utility installed with -g does not work in your environment.

I guess npm (or yarn) installs the package in a place that is not in your PATH.

@lpinca
Copy link
Member

lpinca commented Jun 11, 2020

Try to run npm bin -g to see where npm adds the symbolic links and add that directory to your PATH.

@lobstaboy
Copy link
Author

Woohoo! Thank you, it worked. I also got a permission denied error, which I fixed from here.

@lpinca
Copy link
Member

lpinca commented Jun 12, 2020

Ok, closing then.

@lpinca lpinca closed this as completed Jun 12, 2020
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

No branches or pull requests

2 participants