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

 

 在react 项目中暴露webpack 配置文件的时候,执行

yarn run eject

 

报错

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.

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

 

 

其实就是因为工程默认的git 导致的(git配置文件)

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

 

 


在默认执行一次

git status

git add . // 添加全部

git commit -m "first" //首次commit 一次

// 就ok了

 

 

上一篇:Windows10中安装Java JDK配置Tomcat10


下一篇:《Web安全之机器学习入门》笔记:第七章 7.3朴素贝叶斯检测WebShell(一)