Prismic command not found after installation (OSX)

Hi guys,
I'm having trouble getting the prismic command to do anything.

The current node version is: v14.18.2

Installed prismic using:

sudo npm install -g prismic-cli

seems the installation went successfully and after it i get:

/Users/myusername/.npm-global/bin/prismic -> /Users/myusername/.npm-global/lib/node_modules/prismic-cli/bin/run
+ prismic-cli@4.2.0
updated 1 package in 58.872s

but now when try and run:

prismic --version

I just get a -bash: prismic: command not found error.

Any help on where to start looking would be greatly appreciated.

Hi George,

Thanks for reaching out.

Well when you do sudo npm install -g prismic-cli then npm will install prismic-cli in /usr/local/lib/node_modules/

And in order to check if the package has been installed successfully; you can do this command ls /usr/local/lib/node_modules/ and will list all the packages installed globally.

Generally, if you close your terminal and open it again, you should be able to access prismic CLI command again.

Please let us know if you need any further assistance,
Fares