ユーザ用ツール

文書の過去の版を表示しています。


Deno

概要

Deno はJavaScriptの実行環境である。 Node.js の問題点を解決するものとして実装されているため、多くの改良点を含む反面、既存のライブラリを利用できないことなどが、普及の妨げとなっている。

導入

ユーザ環境へのインストールが行われるため特権は必要はないが、Ubuntuなどの Linux環境では、curlとunzipが導入の際に利用されるため、これらがインストールされている必要はある。

$ curl -fsSL https://deno.land/x/install/install.sh|sh
######################################################################## 100.0%
######################################################################### 100.0%
Archive:  /home/araki/.deno/bin/deno.zip
  inflating: /home/foo/.deno/bin/deno
Deno was installed successfully to /home/foo/.deno/bin/deno
Manually add the directory to your $HOME/.bash_profile (or similar)
  export DENO_INSTALL="/home/foo/.deno"
  export PATH="$DENO_INSTALL/bin:$PATH"
Run '/home/foo/.deno/bin/deno --help' to get started
$ 

上記で示唆されるように、.bashrc などに、環境変数の定義を追加する必要がある。 将来的に、.deno を削除した時にも問題がないように、ディレクトリのチェックを追加している。

# deno
if [ -d ${HOME}/.deno ]; then
        export DENO_INSTALL=${HOME}/.deno
        export PATH=${DENO_INSTALL}/bin:${PATH}
fi

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also, you acknowledge that you have read and understand our Privacy Policy. If you do not agree, please leave the website.

More information