How To Start npm Project?

Table of contents

  1. Install Node.js
  2. Create a project folder
  3. Launch npm
  4. Install npm packages
  5. Terminal command keys
  6. npm i events
  7. Overall

Step 1. Install Node.js

node.js homepage
node -v
npm -v

Step 2. Create a project folder

mkdir folder-name
ls

Step 3. Launch npm

npm init --yes
In terminal it will looks like that.

Step 4. Install npm packages

npm i eslint --save-dev --save-exact

Step 5. Terminal command keys

What is --save-dev and --save-exact ?

npm i eslint -D -E 
npm i eslint -DE 

Step 6. npm i events

After we installed a first package in our project we can see some events:

{
"scripts": {
"lint": "eslint"
}
}
npm run lint

Overall

--

--

--

Michael Myers. 21 y/o Front-end Developer & Freelancer & Video Creator. Writing about Web Development and Freelance. Twitter @devmoek

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Some information about React JSX, Error handling, Props and Prop types

My takeaways from building a job board with AdonisJs 4

Why Should AngularJS be Your First Choice for Development in 2021?

Loops and Conditionals

3 relevant Node.js libraries/frameworks to still use in 2021

NodeJS Web Application CI/CD Pipeline on AWS

Models from JSON API response

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
moek 👨‍💻

moek 👨‍💻

Michael Myers. 21 y/o Front-end Developer & Freelancer & Video Creator. Writing about Web Development and Freelance. Twitter @devmoek

More from Medium

How to create a react app on android device

Post Thumbnail

Get ready with Application Frameworks

Build your first React JS Project Step by step

Browser Storage — Part 1