ZAID
ZAID•8mo ago

Deno is not installed globally

Guys please help me, i'm using fedora at first. When installed it with curl -fsSL https://deno.land/install.sh | sh it's working only once, when i closed the terminal and opening it again i got bash: deno: command not found..., i don't want to use vfox too, because i need to use vfox use deno --global each time.:hooray_deno:
3 Replies
Deno AI Helper
Deno AI Helper•8mo ago
Hello there! 🦕 It looks like Deno isn't being added to your PATH environment variable permanently, which is why it's not recognized when you open a new terminal session. To ensure Deno is available globally on your Fedora system, you need to add the Deno binary's location to your PATH. When you install Deno using the provided shell script, it typically installs Deno to $HOME/.deno/bin. You'll want to add this directory to your PATH in your shell profile file. Here's how you can do it: 1. Open your shell profile file with a text editor. This file could be .bashrc, .bash_profile, .zshrc, or another configuration file depending on your shell. If you're using bash, it's likely .bashrc:
nano ~/.bashrc
nano ~/.bashrc
2. Add the following line to the end of the file:
export PATH="$HOME/.deno/bin:$PATH"
export PATH="$HOME/.deno/bin:$PATH"
3. Save and close the file. 4. Apply the changes by sourcing your profile file:
source ~/.bashrc
source ~/.bashrc
Now, you should be able to run deno --version to check if Deno is accessible from any new terminal session. If you're still having trouble, make sure that the Deno binary actually exists in $HOME/.deno/bin and that the PATH is set correctly. Remember, these changes will only take effect for new terminal sessions, so you'll need to close and reopen your terminal, or source your profile file in any existing terminals. If you need more detailed instructions or run into any issues, feel free to ask!
ZAID
ZAIDOP•8mo ago
Thank you, the most helpful AI in the whole world.
Deno AI Helper
Deno AI Helper•8mo ago
You're very welcome! I'm glad I could assist you. If you have any more questions or need further help with Deno, feel free to reach out. Happy coding with Deno! 🦕💻

Did you find this page helpful?