WEB개발/에러정리(3)
-
[ERROR] 'NODE_ENV'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치 파일이 아닙니다.
1. 원인 package.json 파일의 scripts 부분에 NODE_ENV을 작성하여 환경 설정을 함. // package.json ... "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "prod": "NODE_ENV=production nodemon --watch 'bin/*' --watch 'src/*' bin/index.js", "dev": "NODE_ENV=development nodemon --watch 'bin/*' --watch 'src/*' bin/index.js" }, ... 2. 문제 윈도우OS를 사용하고 있어 NODE_ENV를 인식하지 못하는 문제 발생 // error 'NODE_ENV'은(는) 내부 또는 ..
2023.07.25 -
[ERROR] does not have a commit checked out / adding files failed
git add 명령어를 실행할 때, 밑과 같은 오류 발생 error: [FILE-PATH] does not have a commit checked out fatal: adding files failed 에러 원인: 로컬 저장소에 중복된 .git 파일이 있어 Git 혼란 발생 해결 방법: 중복된 .git 파일 제거 ex) A파일에 .git 파일이 있고, A파일 내에 존재하는 B파일에도 .git 파일 존재하는 경우 => B파일 내 .git 파일 삭제
2023.04.16 -
[ERROR] git push 에러 정리
깃허브에 커밋이 되지 않는다..! 현재 위치의 폴더가 깃허브의 원격 레포지토리랑 연결이 안 돼 있다는 오류 fatal: No configured push destination. Either specify the URL from the command-line or configure a remote repository using git remote add and then push using the remote name git push 현재위치 폴더와 원격 레포지토리 연동 후, push 명령어 사용해보기 git remote add origin (레포지토리 주소) git push --set-upstream origin main 오류.. To ! [rejected] main -> main (fetch first)..
2022.10.28