我运行的命令是:
curl -fsSL https://deno.land/x/install/install.sh | sh
输出结果为:
######################################################################## 100.0%
Archive: /root/.deno/bin/deno.zip
inflating: deno
Deno was installed successfully to /root/.deno/bin/deno
Manually add the directory to your $HOME/.bash_profile (or similar)
export DENO_INSTALL="/root/.deno"
export PATH="$DENO_INSTALL/bin:$PATH"
Run '/root/.deno/bin/deno --help' to get started
在此之后,我在终端中运行deno
,但是它给了我一个错误。
有人能解释一下如何在Ubuntu上正确安装Deno吗?
sudo nano ~/.bashrc
,因为你可能在除了~
以外的其他目录中。 - Andrew Koster