Arch Linux에 Deno 설치

데노란? deno.land , 공식 웹 사이트는 짧고 인상적으로 알려줍니다.

Deno is a simple, modern and secure runtime for JavaScript and TypeScript that uses V8 and is built in Rust.



Github 저장소는 here 입니다.

다음은 Arch Linux 에 설치하는 방법을 보여줍니다. 정말 간단합니다. 다음과 같이 pacman 을 사용하십시오.

# pacman -Sy deno


완료.
이제 컴퓨터에서 V8 engineTypeScript에서 deno를 사용할 수 있습니다.

$ deno --version
deno 1.12.1 (release, x86_64-unknown-linux-gnu)
v8 9.2.230.14
typescript 4.3.5


다음은 무엇입니까? the official getting started 가 있습니다.
예를 들어 명령줄에서 한 줄짜리 Deno 프로그램을 실행합니다.

$ deno run https://deno.land/std/examples/welcome.ts
Download https://deno.land/std/examples/welcome.ts
Warning Implicitly using latest version (0.102.0) for https://deno.land/std/examples/welcome.ts
Download https://deno.land/[email protected]/examples/welcome.ts
Check https://deno.land/std/examples/welcome.ts
Welcome to Deno!


음, denoNode.js이 하는 것처럼 로컬 index.js/index.ts를 실행할 수 있습니다. 그러나 denopackage.json, package-lock.json, 심지어 node_modules 디렉토리를 생성하지 않는다는 점에 유의하십시오!
여기 또 다른 예가 있습니다.

$ mkdir my-first-deno
$ cd my-first-deno
$ touch index.js # or index.ts


다음 행을 index.js에 추가하십시오.

console.log('Hello, world.');


당신은 그것을 실행할 수 있습니다:

$ deno run index.js
Hello, world.

좋은 웹페이지 즐겨찾기