Skip to main content
NODEJS-BASICS5 MIN READ

Use package.json as the project control plane

Explain how npm scripts and dependency scopes help a team run a Node.js project consistently.

The reframe: npm scripts are the public buttons for your project. A beginner often runs commands directly: node server.js, tsx watch src/index.ts, or vitest --run. That works for one person. It breaks down when CI, teammates, and deployment need a stable command. Scripts Scripts name repeatable tasks. A good script is boring: start starts the production app, dev starts a local watcher, test runs tests, and lint checks style or correctness. Dependencies Dependencies are packages the app needs when it runs. If production cannot start without it, it belongs here. devDependencies Development dependencies are tools used to build, test, generate,…

Read the full lesson

Sign up free — one personalized lesson every day, matched to your role and goals.

Already have an account? Sign in

← Back to library
Contact us