SMALL

npm i tailwindcss

vite.config.js

import path from "path"
import { fileURLToPath } from 'url'
import tailwindcss from "@tailwindcss/vite"
import react from "@vitejs/plugin-react"
import { defineConfig } from "vite"

const __dirname = path.dirname(fileURLToPath(import.meta.url))

export default defineConfig({
  plugins: [react(), tailwindcss()],
  resolve: {
    alias: {
      "@": path.resolve(__dirname, "./src"),
    },
  },
})

 

tailwind.config.js

/** @type {import('tailwindcss').Config} */
export default {
  darkMode: 'class',
  content: [
    "./index.html",
    "./src/**/*.{js,jsx,ts,tsx}",
  ],
  theme: {
    extend: {
      colors: {
        primary: {
          50: '#f0f9ff',
          100: '#e0f2fe',
          200: '#bae6fd',
          300: '#7dd3fc',
          400: '#38bdf8',
          500: '#0ea5e9',
          600: '#0284c7',
          700: '#0369a1',
          800: '#075985',
          900: '#0c4a6e',
          950: '#082f49',
        }
      }
    },
  },
  plugins: [],
}

 

index.css

@import "tailwindcss";
LIST
SMALL

레지스트리 설정 확인

npm config get registry

 

 

공식레지스트리가 아닐시 변경

npm config set registry https://registry.npmjs.org/

 

 

캐시제거

npm cache clean --force

 

 

노드모듈 설치

npm i
LIST
SMALL

1. 설치 가능한 패키지 검색

$ apt list 패키지명
$ apt list zip*

 

2. 설치된 패키지 검색

$ apt --installed list
$ apt --installed list *jdk*

 

3. 설치된 패키지 삭제

$ apt remove openjdk*
# 완전삭제
$ sudo apt --purge remove [패키지이름]
# or
$ sudo purge remove [패키지이름]

 

4. 관련 패키지 삭제

# 패키지검색
$ dpkg --list | grep [패키지 이름]
# 패키지 삭제
$ sudo dpkg --purge [패키지 이름]

 

https://velog.io/@coral2cola/Ubuntu-%ED%8C%A8%ED%82%A4%EC%A7%80-%EC%82%AD%EC%A0%9C%ED%95%98%EA%B8%B0

 

Ubuntu 패키지 삭제하기

Ubuntu에서 기존에 설치했던 패키지를 설정파일까지 완전히 삭제하려면 어떻게 해야할까?

velog.io

 

LIST
SMALL

unzip과 zip사용시 분할압축된 파일을 zip으로 다시 합치고 unzip해야하므로 번거로움


 

7z 설치

# ubuntu
sudo apt install p7zip-full

 

7z로 압축 해제

7za x test.zip

 

특정 디렉토리에 압축해제할때

7za x test.zip o.test

 

 

https://iambeginnerdeveloper.tistory.com/175

 

Ubuntu | .7z 파일 압축 해제하기, Ubuntu .7z file unzip | 리눅스, p7zip(7-Zip) 사용

이때까지 마주한 압축 파일 포맷은 .zip과 .tar이 전부였는데 이번에 .7z라는 파일을 마주하게 되었다. p7zip는 리눅스에서 사용할 수 있는 7-Zip이며 압축률이 높아서 zip이나 tgz보다 작은 파일을 만

iambeginnerdeveloper.tistory.com

 

LIST

'일반' 카테고리의 다른 글

npm i registry 관련 404 error  (0) 2025.04.03
apt 리스트 확인 삭제  (0) 2025.03.26
git lfs (Large File System) 설치 및 동작하기  (0) 2025.03.25
next.js vscode 성능 저하 , 속도 느림  (0) 2025.03.19
20250311  (0) 2025.03.11
SMALL

git은 단일 파일이 100mb를 초과하는경우에는 일반 commit으로는 진행이 어렵다

이때 무료로 2gb까지 지원하는 git lfs를 설치 및 사용하면 파일 업로드가 가능하다

 

https://newsight.tistory.com/330

 

Git LFS (Large File Storage) 사용하기

Git의 용량제한과 LFS기본적으로 git은 여러개의 작은 소스코드 파일들을 위한 버전 컨트롤 시스템(VCS)이다. 따라서 Github의 경우 50Mb부터 Warning이 표시되고, 100Mb부터는 push시 Error가 발생한다. 그럼

newsight.tistory.com

https://miiingo.tistory.com/333

 

[Git] Ubuntu 16.04에서 Git LFS(Large File Storage) 사용법

Git LFS란? 프로젝트를 GitLab에 올리려고 했더니 다음과 같은 오류가 발생했다. remote: GitLab: LFS objects are missing. Ensure LFS is properly set up or try a manual "git lfs push --all". To http://localhost:9010/honeybee/issuer-rest

miiingo.tistory.com

 

 

로컬에 설치

# git lfs 설치(git bash)
git lfs install
# git lfs가 추적할 파일 확장자 지정
git lfs track "*.zip"
# .gitattributes 생성
git add .gitattributes
# .gitattributes 확인
cat .gitattributes 
#*.zip filter=lfs diff=lfs merge=lfs -text

# git config 설정
git config lfs.allowincompletepush true

# git add/commit push 실행

 

서버에서 설치

https://packagecloud.io/github/git-lfs/install#bash-deb

 

github/git-lfs - Installation · packagecloud

Installation instructions for the github/git-lfs package repository.

packagecloud.io

 

curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
sudo apt install git-lfs

# sudo 권한이 없을 경우
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
apt install git-lfs

 

 

 

 lfs설정이 다 된뒤에 필요한곳에서 git clone으로 가져와야지만 lfs가 설정된 상태로 가져와짐!!!

기존에 clone으로 가져온 repo가 있다면 삭제 후 다시 가져오기

 


 

commit한개당 파일 용량이 누적으로 적용되므로 변화하는 데이터를 적용하면 용량이 많이 필요

 

제거방법

https://blog.syki66.com/2021/04/09/git-lfs-untrack/

 

[git lfs untrack] 깃, lfs 추적 해제, 원격 저장소 lfs 저장공간 확보 | syki66 blog

How to untrack git lfs files

blog.syki66.com

 

 

npm config get registry

확인후 기본 레지스트리 아닐시 변경 필요

npm config set registry https://registry.npmjs.org/
LIST

'일반' 카테고리의 다른 글

apt 리스트 확인 삭제  (0) 2025.03.26
linux 파일 분할 압축 후 해제  (0) 2025.03.26
next.js vscode 성능 저하 , 속도 느림  (0) 2025.03.19
20250311  (0) 2025.03.11
vite 6 + react 19 에 tailwind.css 3.4 + antd 5.24 적용하기  (0) 2025.02.24
SMALL

https://github.com/vercel/next.js/discussions/38477

 

Nextjs project is very slow to save file in VS Code · vercel next.js · Discussion #38477

I am building the project with nextjs and antd, in VS Code it is very slow every time I save the file. I don't know why this is happening, does anyone know how to fix this?

github.com

 

문제 원인:

Next js사용 중 자동완성 및 복사 붙여넣기, 포맷팅의 속도가 느려지는 현상 발생

 

해결:

vscode의 extension과의 충돌 발생 -> extension삭제 후 해결완료

  • Auto Import 삭제
  • GitLens 삭제
  • live Server 삭제

LIST

+ Recent posts