#Deno is not installed globally
1 messages · Page 1 of 1 (latest)
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:
- 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
- Add the following line to the end of the file:
export PATH="$HOME/.deno/bin:$PATH"
-
Save and close the file.
-
Apply the changes by sourcing your profile file:
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!
Thank you, the most helpful AI in the whole world.
