npm install `--force` and `--legacy-peer-deps` 차이점
·
ect
npm install을 할 때 "unable to resolve dependency tree"에러가 발생하면서npm 설치가 안될 때가 있다.이런 경우 npm 이 패키지간의 의존성 충돌을 해결하지 못했을 때 발생한다. 나 같은 경우는 quill 패키지의 2.0.2버전이 프로젝트의 루트에서 사용되고 있지만,@xeger/quill-image-actions 패키지가 quill의 1.3.6버전을 요구하고 있어 문제가 발생한다. 이런 에러가 발생할 경우npm install --force 이나 npm install --legacy-peer-deps 를 사용하면 되는데둘의 차이점을 알아보도록 하자 npm v7에서 달라진 점2021년 2월 npm 7버전이 나왔는데Automatically installing peer de..
pm2 프로세스 저장하는 방법
·
ect
pm2를 실행할 때 설정파일(ecosystem.config.js)을 수정한 후 실행 pm2 start ecosystem.config.js 시킨다. 그러나 이렇게만 할 경우 reboot시 pm2 list 에서 없어진다. 저장이 안 되어 있기 때문에 그렇다. reboot시 pm2 프로세스가 자동으로 재시작 되려면 pm2 startup 이 명령어는 현재 시스템에 맞는 startup 스크립트를 생성하고, 이 스크립트를 시스템의 부팅 프로세스에 등록하는 명령어를 출력합니다. 이 명령은 pm2와 관련된 앱의 위치와 관계 없이 시스템 전역설정에 영향을 주는 것입니다. 명령어 실행 후 표시되는 지시사항을 따라서 출력된 명령어를 실행하여 pm2를 시스템 부팅 프로세스에 등록합니다. pm2로 실행하고자 하는 앱을 모두 실..
pm2 "npm run start"로 실행하기
·
ect
pm2 - npm run start 실행시키는 방법 방법 2가지 1 ) pm2로 npm 스크립트 실행하기 실행시킬 디렉토리에 가서 아래와 같이 명령어 입력해주면 된다. pm2 start "npm run start" --name app이름 pm2 list 보면 해당 app이름이 추가되어 있는것을 확인할 수 있다. 2 ) pm2 설정 파일 사용하기 ➡️ 이 방법은 시도해보지 않았다. pm2 설정파일 (ecosystem.config.js)에서 설정 module.exports = { apps : [{ name: "my-app-name", script: "npm", args: "run start" }] }; 설정 후 시작 pm2 start ecosystem.config.js 참고 - chatgpt - https:..
git | 레파지토리 복사하기
·
ect
참고 : https://velog.io/@hoo00nn/Git-Repository-%EB%B3%B5%EC%82%AC%ED%95%98%EA%B8%B0 최종 프로젝트를 마치고 나의 포트폴리오로 사용하기 위해 다른 사람의 레파지토리를 나의 레파지토리로 가져와야 했다. 1. mirror 나 bare 옵션을 이용한 clone 처음에 mirror로 했다가 5번 push 할 때 에러가 나서 에러메세지 : 아래와 같은 에러가 여러개 떴다. ! [remote rejected] refs/pull/1/head -> refs/pull/1/head (deny updating a hidden ref) 참고 : https://iamcho2.github.io/2021/04/24/git-mirroring 위에 분도 저랑 같은 에러가 ..
git | git push 에러 (mac)
·
ect
git push를 했더니 username, password를 입력하라고 나와 입력했다. 그 후 에러 메세지 : remote: Support for password authentication was removed on August 13, 2021. remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication. fatal: Authentication failed for 'https://github.com/seacodin..
뿌띠
·
ect
접속확인 - window 운영체제 PuTTy 다운로드 (윈도우) Download PuTTY: latest release (0.78) This page contains download links for the latest released version of PuTTY. Currently this is 0.78, released on 2022-10-29. When new releases come out, this page will update to contain the latest, so this is a good page to bookmark or link to. Alternativel www.chiark.greenend.org.uk 열어서 다음 다음 다음 눌러서 설치~ 원격에 있는 EC2 컴퓨터로 접속한..
git | 명령어
·
ect
git bash에서 명령어 입력하기 *git push 하는 법 1. git init 2. git branch 3, git add . 4.git commit -m "메세지" 5. git push origin 내브랜치명 *git 머지한거 pull하는법 1. git checkout master 2. git pull origin master 3. git branch -d 브랜치명 (브랜치삭제) 4. git branch 새로운 브랜치명 5. git checkout 새로운 브랜치명