I'm trying to use PeerJS in the command line after I've installed it using
npm i -g peerjs
and I can confirm it's installed globally as it shows when I run
npm list -g --depth 0
When I try to run peerjs in the command line, it throws a CommandNotFoundException.
I've tried adding these to my user PATH variable:
I've also tried uninstalling and reinstalling PeerJS, as well as running the NodeJS Command Line app which is meant to set up the environment.
Any help on getting this command working would be greatly appreciated.
Thanks.
You probably meant to install the peer
package, which is the PeerJS server. That is the one that provides the peerjs
command. The peerjs
package contains the API library.