学无先后,达者为师

网站首页 编程语言 正文

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

作者:天渺工作室 更新时间: 2022-02-27 编程语言

在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.

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

在默认

git status

git add . // 添加全部

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

// 就ok了

原文链接:https://blog.csdn.net/sinat_37255207/article/details/122762606

栏目分类
最近更新