"command not found: vercel" after installing globally #5019
-
I just installed vercel with: I tried to list installed NPM packaged to see if it is installed, and seems that it is: How could I make it run? |
Beta Was this translation helpful? Give feedback.
Replies: 12 comments 47 replies
-
Hey @lukosevicius, this is likely an issue with your Node.js installation, are you able to run other commands globally? |
Beta Was this translation helpful? Give feedback.
-
Hi Mantas did you ever figure this out? I'm having the same issue |
Beta Was this translation helpful? Give feedback.
-
Solution: |
Beta Was this translation helpful? Give feedback.
-
@lukosevicius @mcsdevv @salatielosorno @StayFoolisj @solarlime Command But calling "vercel" in the CLI still gives this error |
Beta Was this translation helpful? Give feedback.
-
It's just that you've been using
You can even double check if vercel exist inside the bin folder, this is where global packages can be found. |
Beta Was this translation helpful? Give feedback.
-
hello is there any solution to this? Im using yarn but still doesn't work |
Beta Was this translation helpful? Give feedback.
-
I use node with the asdf version manager. |
Beta Was this translation helpful? Give feedback.
-
if command
or
still not work, you can force run with full path to binary vercel :
|
Beta Was this translation helpful? Give feedback.
-
This happened to me when I deleted my Path user environment variables (on Windows!).
|
Beta Was this translation helpful? Give feedback.
-
I successfully installed Vercel within macOS using the following command. |
Beta Was this translation helpful? Give feedback.
-
I am using yarn.. anybody found an actual fix for this |
Beta Was this translation helpful? Give feedback.
-
Running this command in terminal worked for me. I used npm to install Vercel.
|
Beta Was this translation helpful? Give feedback.
Solution:
mkdir ~/.npm-global
export NPM_CONFIG_PREFIX=~/.npm-global
export PATH=$PATH:~/.npm-global/bin
echo -e "export NPM_CONFIG_PREFIX=~/.npm-global\nexport PATH=$PATH:~/.npm-global/bin" >> ~/.bashrc