This git repository has untracked files or uncommitted changes:

~

~~

~~~

~~~~

Remove untracked files, stash or commit any changes, and try again.

error Command failed with exit code 1.

info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.



$ yarn eject


를 하려고 했더니, 다음과 같은 에러가 발생했다.

아니 깃은 무슨 깃이여?

깃 설정 아무것도 안했는데?

하지만, 에러가 났으니 해결 방법을 검색했고 찾았다.


커밋을 해줘야한다고 한다.

솔직히 왜 해줘야 하는지도 잘 모르겠다.

하지만, 다음과 같이 


$ git add .

$ git commit -m "commit text"

와 같이

add를 하고 commit을 해주면~?

정상적으로 에러안나고 

yarn eject가 실행된다.

이유는 솔직히 모르겠다.

위에는 에러!!!


아래는 해결!!!



Posted by sungho88
,

npm을 이용해서, yarn을 설치했다.


$ npm install yarn


설치가 되었다. 그런데, 사용하려면 에러가 발생한다.


C:\Users\USER\Desktop\Project\todolist> yarn eject


'yarn'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는

배치 파일이 아닙니다.


이렇게 나온다. 


이럴경우 글로벌로 설치하면 해결된다.


$ npm install -g yarn

Posted by sungho88
,