Hey guys i have installed moralis cli on MacOs using npm install -g moralis -admin-cli and it appears to have installed successfully. However i canât run any commands as i get âbash: moralis command not foundâ ⌠Any mac users here who use moralis CLI?
maybe you donât have in PATH the location of that file
not sure if starting another terminal would help
how so ? i used the -g flag to install moralis so shouldnât it work regardless? Also iâm in the folder where i did the install command
It works on mac - most devs use Moralis on mac. You need to know how to install npm packages on mac - itâs like any other npm package.
If you installed an npm package and it still doesnât work - you need to double check if your system is set up properly with npm so npm puts packages in same folder where your system looks for them
You could check where it was installed by running npm root -g
, and then you can check if the folder that contains node binaries (maybe it is .bin
folder in same folder with modules) it is in what echo $PATH
returns.
Even if you are in the folder where that script is, youâll have to use `./moralis-admin-cli in order to run it if the folder that contains the script is not found in $PATH variable. The $PATH variable contains the folders from where the operating system will try to find what you are trying to execute on command line.
I can see the folder where npm installs is /usr/local/lib/node_modules and i can see moralis installed there along side truffle, yarn etc. Iâve been using npm packages on this device and usually require no extra configuration, itâs my main programming device so this is a bit confusing
moralis-admin-cli
is not there, meaning you havenât run installation process as explained here https://docs.moralis.io/moralis-server/tools/moralis-admin-cli
Please check
Thank you! works now, i must have added a space when i initialy tried to install the pacakge, works fine now.