본문 바로가기
반응형

에러3

깃허브 데스크탑 - 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.
반응형