본문 바로가기
반응형

error5

깃허브 - RESTful API로 파일 쓰기 (Update GitHub Files with PUT) Git / GitHub 전체 링크 Node JS 전체 링크 참고 - RESTful API로 파일의 SHA 구하기 - RESTful API로 파일 읽기 - RESTful API로 파일 쓰기 - RESTful API로 파일 생성, 삭제하기 - 깃허브 RESTful API로 파일 편집기 만들기 - https://docs.github.com/en/rest/repos/contents?apiVersion=2022-11-28 RESTful API로 파일을 읽었다면, 이번에 파일의 내용을 변경해보자. https://github.com/bloodstrawberry/auto-test SHA 알아오기 파일을 업데이트하기 위해서는 sha가 필요하다. RESTful API로 깃허브에 저장된 파일의 sha를 알아낼 수 있다. 링.. 2023. 6. 23.
깃허브 데스크탑 - 유니티 commit 에러 (CRLF will be replaced by LF) Git / GitHub 전체 링크 GitHub Desktop에서 Unity 프로젝트를 repository에 추가할 때, 아래와 같은 에러가 발생하는 경우가 있다. warning: CRLF will be replaced by LF in - xxxx The file will have its original line endings in your working directory autocrlf를 true로 변경해주면 되지만, 깃헙 데스크탑에서 되지 않는 경우도 있다. git config --global core.autocrlf true autocrlf를 변경해도 안된다면, 아래의 .gitignore에서 경로를 수정하면 된다. # This .gitignore file should be placed at the r.. 2022. 9. 8.
깃허브 데스크탑 - Filename too long 에러 처리하기 (Windows GitHub Desktop) Git / GitHub 전체 링크 아래와 같은 깃헙 에러가 나온다면, 윈도우 파일 이름의 제한(255자) 때문이다. error: unable to create file [long long file name]: Filename too long Git Bash에서 아래의 명령어를 입력해서 환경 설정을 변경할 수 있다. git config --system core.longpaths true 그러나 위와 같은 에러가 나온다. 시작 버튼 옆의 검색에서 Git Bash를 검색한 후 관리자 권한으로 실행하자. 그래도 안된다면 관리자 권한으로 실행한 후 아래의 명령어도 실행해보자. git config --global core.longpaths true 2022. 6. 14.
리액트 라우터 react router (최신 node ver) 리액트 전체 링크 참고- gh-pages로 배포된 프로젝트에 리액트 라우터 적용하기 react-router-dom을 설치한다.yarn add react-router-dom index.js에 BrowserRouter를 추가한다.//index.jsimport React from 'react';import ReactDOM from 'react-dom';import './index.css';import App from './App';import reportWebVitals from './reportWebVitals';import { BrowserRouter } from "react-router-dom";ReactDOM.render( , document.get.. 2022. 2. 20.
리액트 - window pm2 react 구동시 syntax error 해결방법 리액트 전체 링크 pm2 설치 완료 후 react root 폴더에서 아래의 명령어를 실행하면 웹페이지를 계속해서 실행할 수 있다. $ pm2 start npm -- start 하지만 window에서 에러가 나는 경우가 발생한다. 먼저 pm2 monit으로 모니터링을 해보자. $ pm2 monit 다시 다른 터미널로 pm2 start npm -- start 를 실행하면 아래와 같은 로그를 볼 수 있다. npm > SyntaxError: Invalid or unexpected token │ npm > at Object.compileFunction (node:vm:352:18) │ npm > at wrapSafe (node:internal/modules/cjs/loader:1026:15) │ npm > at .. 2022. 2. 19.
반응형