π
π9mo ago

Ran all install commands and now getting errors

I noticed that deno upgrade returns:
error: This deno was built without the "upgrade" feature. Please upgrade using the installation method originally used to install Deno.
This message is in cli/main.rs: https://deno.land/x/deno@v1.41.0/cli/main.rs?source= So probably I installed Deno with some Rust CLI and did not configure the environment / zsh (on Mac) well. Any feedback please?
9 Replies
Deno AI Helper
Deno AI Helper9mo ago
I wasn't able to find the answer to your question in the official Deno documentation. However, based on the error message you've provided, it seems that the version of Deno you have installed was built without the "upgrade" feature. This typically means that Deno was installed using a method that does not support the deno upgrade command. If you installed Deno using a package manager for Rust (like Cargo) or another method that does not include the upgrade feature, you will need to follow the upgrade instructions for that specific installation method. For example, if you used Cargo, you might need to run cargo install deno again to get the latest version. Regarding your environment setup on macOS with zsh, if Deno is installed correctly, you should be able to run deno --version to check the installed version. Make sure that the path to the Deno binary is included in your PATH environment variable. You can do this by adding a line like export PATH="/path/to/deno:$PATH" to your .zshrc file, where /path/to/deno is the directory containing the Deno binary. Please note that this advice is not based on the Deno documentation, and I would advise you to double-check the accuracy of the advice given. If you continue to experience issues, you might want to consider reinstalling Deno using one of the methods described in the official installation instructions on the Deno website: https://deno.land/#installation.
marvinh.
marvinh.9mo ago
It's probably best to follow the original install instructions https://docs.deno.com/runtime/manual/getting_started/installation
Installation | Deno Docs
Deno works on macOS, Linux, and Windows. Deno is a single binary executable. It
π
πOP9mo ago
It’s what I did (curl install) but how to solve conflicts in installations
marvinh.
marvinh.9mo ago
Can you share the error you're getting?
π
πOP9mo ago
deno upgrade returns:
error: This deno was built without the "upgrade" feature. Please upgrade using the installation method originally used to install Deno.
marvinh.
marvinh.9mo ago
how did you install deno? it sounds like it wasn't installed with the curl command. Maybe via homebrew?
π
πOP9mo ago
First I installed it with rust I don’t remember where Then I ran the brew install deno more recently It looks like I have messed up my deno $PATH, how to debug this?
marvinh.
marvinh.9mo ago
1. Uninstall deno. Running which deno will return the path to the binary which may include hints as to how it was installed based on the path it's in 2. If deno is successfully uninstalled you'll get some sort of command not found error when running deno in the terminal 3. Install deno via curl as described here https://docs.deno.com/runtime/manual/getting_started/installation
π
πOP9mo ago
Ok

Did you find this page helpful?