<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/day-4-60--setting-up-your-environment-from-scratch-r7ew1c7sl" -->

---
title: Day 4/60- Setting Up Your Environment From Scratch
description: A beginner-oriented guide for setting up a TypeScript development environment from scratch. Covers installing the TypeScript compiler (tsc) globally via npm...
canonical: https://daily.dev/posts/day-4-60--setting-up-your-environment-from-scratch-r7ew1c7sl
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Day 4/60- Setting Up Your Environment From Scratch | daily.dev
og:description: A beginner-oriented guide for setting up a TypeScript development environment from scratch. Covers installing the TypeScript compiler (tsc) globally via npm...
og:url: https://daily.dev/posts/day-4-60--setting-up-your-environment-from-scratch-r7ew1c7sl
og:image: https://api.daily.dev/og/posts/R7ew1c7sL.png
og:image:alt: Day 4/60- Setting Up Your Environment From Scratch
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Day 4/60- Setting Up Your Environment From Scratch

**[Taiwo Francis Oguntade](https://daily.dev/sources/fstpm3zejud3qgleeoous)** · [@taiwofrancis](https://daily.dev/taiwofrancis) · 1 min read · 2 upvotes · 0 comments

## Summary

A beginner-oriented guide for setting up a TypeScript development environment from scratch. Covers installing the TypeScript compiler (tsc) globally via npm and using ts-node to run TypeScript files directly without a manual compile step, enabling fast local testing from any terminal directory.

## Content

To write great code, your local machine needs the right environment. Let's install TypeScript and run your first file in under 60 seconds.

![How To Install & Run TypeScript Fast 🛠️ (Day 4:60).png](https://media.daily.dev/image/upload/s--njVuDJn5--/f_auto/v1785749218/ugc/content_04d3d8ac-6d31-4e4d-965e-56c98bdafb3e?_a=BAMAMicg0)

TypeScript cannot be executed directly by web browsers or standard servers. It requires the TypeScript Compiler (`tsc`) to read your code, check for errors, and convert it into clean, runnable JavaScript.

By installing the compiler globally via npm, you gain the power to test files instantly from any terminal directory. To make development even faster, installing tools like `ts-node` lets you skip the manual compile step entirely, running your TypeScript files as if they were native scripts.

**Welcome to Day 4 of 60 Days of TypeScript.**

- **The Rule:** Install `typescript` and `ts-node` globally on your machine.

- **The Goal:** Build an environment where testing code takes one single terminal command.

**Let's hear it:** Do you prefer compiling files manually using `tsc`, or do you use tools like `ts-node` for fast local testing?

## Similar posts on daily.dev

- [So You Want to Code in JavaScript: A Setup Survival Kit](https://daily.dev/posts/so-you-want-to-code-in-javascript-a-setup-survival-kit-ydkff5wsy) · Atomic Spin · 3 upvotes · 0 comments
- [Build and publish a TypeScript package to npm](https://daily.dev/posts/build-and-publish-a-typescript-package-to-npm-x7yihxfvp) · Flavio Copes · 1 upvotes · 1 comments
- [Setting Up a macOS Development Environment](https://daily.dev/posts/setting-up-a-macos-development-environment-1js0iw3z4) · Medium · 0 upvotes · 0 comments
- [A Beginner’s Guide to Setting Up a React Native Dev Environment](https://daily.dev/posts/a-beginner-s-guide-to-setting-up-a-react-native-dev-environment-4smzlvm1h) · Atomic Spin · 0 upvotes · 0 comments
- [Intro \+ Setup](https://daily.dev/posts/intro-setup-k1mdkmrf4) · Larablog · 0 upvotes · 0 comments

---

Tags: [#typescript](https://daily.dev/tags/typescript), [#npm](https://daily.dev/tags/npm)

[View this post on daily.dev](https://daily.dev/posts/day-4-60--setting-up-your-environment-from-scratch-r7ew1c7sl)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/day-4-60--setting-up-your-environment-from-scratch-r7ew1c7sl","headline":"Day 4/60- Setting Up Your Environment From Scratch","text":"A beginner-oriented guide for setting up a TypeScript development environment from scratch. Covers installing the TypeScript compiler (tsc) globally via npm and using ts-node to run TypeScript files directly without a manual compile step, enabling fast local testing from any terminal directory.","url":"https://daily.dev/posts/day-4-60--setting-up-your-environment-from-scratch-r7ew1c7sl","datePublished":"2026-08-03T09:27:30.100Z","dateModified":"2026-09-13T21:23:03.329Z","author":{"@type":"Person","name":"Taiwo Francis Oguntade","url":"https://daily.dev/taiwofrancis","image":"https://media.daily.dev/image/upload/s--px3_Pvo4--/f_auto/v1785515368/avatars/avatar_FStpm3ZejUD3qGlEeoOUS?_a=BAMAMicg0","description":"I will Be Your Professional Full Stack Software Developer","worksFor":{"@type":"Organization","name":"Opa Exquisite Concept Limited","logo":"https://www.google.com/s2/favicons?domain=opaexquisiteconceptlimited.com&sz=128"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":2210}},"image":"https://media.daily.dev/image/upload/s--oKJW2_52--/f_auto/v1785749252/posts/R7ew1c7sL?_a=BAMAMicg0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/fstpm3zejud3qgleeoous","name":"Taiwo Francis Oguntade"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Taiwo Francis Oguntade","item":"https://daily.dev/sources/fstpm3zejud3qgleeoous"},{"@type":"ListItem","position":3,"name":"Day 4/60- Setting Up Your Environment From Scratch"}]}
```

