Arch Linux에 Deno 설치
3173 단어 archlinuxdenojavascriptrust
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 engine 및 TypeScript에서
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!
음,
deno
는 Node.js이 하는 것처럼 로컬 index.js
/index.ts
를 실행할 수 있습니다. 그러나 deno
는 package.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.
Reference
이 문제에 관하여(Arch Linux에 Deno 설치), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/nabbisen/deno-installation-on-arch-linux-4c45텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)